|
@@ -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));
|
|
|
}
|
|
|
|