Piotr Czajkowski 5 hari lalu
induk
melakukan
247588e628
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      analyzeJSON/Statistics.cs

+ 2 - 2
analyzeJSON/Statistics.cs

@@ -1,4 +1,4 @@
-using System.Collections.Generic;
+using System.Collections.Generic;
 using Newtonsoft.Json.Linq;
 using System.Linq;
 
@@ -12,7 +12,7 @@ namespace analyzeJSON
 
         private static int CountWords(string text)
         {
-            var words = text.Split(new char[] { ' ', '\t', '\n' });
+            var words = text.Split([' ', '\t', '\n']);
             return words.Count(x => !string.IsNullOrWhiteSpace(x));
         }