diff --git a/JsonTest/System.Text.Json/AssemblyInfo.cs b/JsonTest/System.Text.Json/AssemblyInfo.cs index 027623f..7f0aad4 100644 --- a/JsonTest/System.Text.Json/AssemblyInfo.cs +++ b/JsonTest/System.Text.Json/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.0.0.11")] -[assembly: AssemblyFileVersion("2.0.0.11")] +[assembly: AssemblyVersion("2.0.1.11")] +[assembly: AssemblyFileVersion("2.0.1.11")] diff --git a/JsonTest/System.Text.Json/JsonParser.cs b/JsonTest/System.Text.Json/JsonParser.cs index 4cfa709..75f1e4f 100644 --- a/JsonTest/System.Text.Json/JsonParser.cs +++ b/JsonTest/System.Text.Json/JsonParser.cs @@ -873,7 +873,7 @@ private decimal ParseDecimal(int outer) private Guid ParseGuid(int outer) { var s = ParseString(0); - if (!String.IsNullOrWhiteSpace(s)) + if (!StringExtensions.IsNullOrWhiteSpace(s)) return new Guid(s); throw Error("Bad GUID"); } diff --git a/JsonTest/System.Text.Json/StringExtensions.cs b/JsonTest/System.Text.Json/StringExtensions.cs new file mode 100644 index 0000000..62df863 --- /dev/null +++ b/JsonTest/System.Text.Json/StringExtensions.cs @@ -0,0 +1,8 @@ +namespace System { + public static class StringExtensions { + public static bool IsNullOrWhiteSpace(this string value) { + if (value == null) return true; + return string.IsNullOrEmpty(value.Trim()); + } + } +} diff --git a/JsonTest/System.Text.Json/System.Text.Json.csproj b/JsonTest/System.Text.Json/System.Text.Json.csproj index f825e64..0383ce8 100644 --- a/JsonTest/System.Text.Json/System.Text.Json.csproj +++ b/JsonTest/System.Text.Json/System.Text.Json.csproj @@ -10,8 +10,9 @@ Properties System.Text.Json System.Text.Json - v4.0 + v3.5 512 + true @@ -44,6 +45,8 @@ + +