From 0a5fc77966c130cff7ea4b11974004d501d86ed5 Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Sat, 11 Jan 2014 12:18:04 +1300 Subject: [PATCH] -Updated readme.txt --- Doc/readme.txt | 14 +++++++------- Src/Newtonsoft.Json/Linq/JToken.cs | 4 +++- Src/Newtonsoft.Json/Utilities/StringUtils.cs | 2 +- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/Doc/readme.txt b/Doc/readme.txt index 807930ca..9f8dff29 100644 --- a/Doc/readme.txt +++ b/Doc/readme.txt @@ -1,7 +1,7 @@ Json.NET -http://james.newtonking.com/projects/json-net.aspx -http://www.codeplex.com/json/ +http://james.newtonking.com/json +http://www.codeplex.com/json https://github.com/JamesNK/Newtonsoft.Json @@ -45,12 +45,12 @@ Json.NET has different libraries for the various .NET Framework versions. .NET 4.5, Windows Phone 8, Windows 8 Store -Portable40: - .NET 4.0, Windows Phone 7, Windows 8 Store, Silverlight 4 + .NET 4.0, Windows Phone 8, Windows 8 Store, Silverlight 5, MonoTouch, MonoDroid Notes: -Microsoft stopped support for the Compact Framework in Visual Studio 2010. -For a Compact Framework 3.5 build download Json.NET 3.5. - -For a Silverlight 3.0 build download Json.NET 3.5. +For a Compact Framework 3.5 build download Json.NET 3.5 +For a Silverlight 3.0 build download Json.NET 3.5 +For a Silverlight 4.0 build download Json.NET 5 +For a Windows Phone 7 build download Json.NET 5 \ No newline at end of file diff --git a/Src/Newtonsoft.Json/Linq/JToken.cs b/Src/Newtonsoft.Json/Linq/JToken.cs index 4f58be3e..c8bbf9e9 100644 --- a/Src/Newtonsoft.Json/Linq/JToken.cs +++ b/Src/Newtonsoft.Json/Linq/JToken.cs @@ -208,7 +208,9 @@ namespace Newtonsoft.Json.Linq case JTokenType.Constructor: int index = ((IList)current).IndexOf(next); - sb.Append("[" + index + "]"); + sb.Append("["); + sb.Append(index); + sb.Append("]"); break; } } diff --git a/Src/Newtonsoft.Json/Utilities/StringUtils.cs b/Src/Newtonsoft.Json/Utilities/StringUtils.cs index ea52e12f..572151ce 100644 --- a/Src/Newtonsoft.Json/Utilities/StringUtils.cs +++ b/Src/Newtonsoft.Json/Utilities/StringUtils.cs @@ -165,7 +165,7 @@ namespace Newtonsoft.Json.Utilities #if !(NETFX_CORE || PORTABLE) lowerCase = char.ToLower(s[i], CultureInfo.InvariantCulture); #else - lowerCase = char.ToLower(s[i]); + lowerCase = char.ToLower(s[i]); #endif sb.Append(lowerCase);