From d17621cd2e4eccb84e54b73fe4e6af422b4795ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=98=E9=9F=AC=20=E5=BC=A0?= Date: Sat, 17 Oct 2020 14:17:53 +0800 Subject: [PATCH] change new string to string.concat() --- Flow.Launcher.Infrastructure/Alphabet.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flow.Launcher.Infrastructure/Alphabet.cs b/Flow.Launcher.Infrastructure/Alphabet.cs index 11fd6873b..eda9caaae 100644 --- a/Flow.Launcher.Infrastructure/Alphabet.cs +++ b/Flow.Launcher.Infrastructure/Alphabet.cs @@ -56,7 +56,7 @@ namespace Flow.Launcher.Infrastructure private string GetFirstPinyinChar(string content) { - return new string(content.Split(";").Select(c => c.First()).ToArray()); + return string.Concat(content.Split(';').Select(x => x.First())); } } } \ No newline at end of file