-Changed blank XML elements to be written as an empty string instead of null

-Added support for XML document type
-Changed string JValue with a null value to be written as null instead of empty string
-Fixed StringEnumConverter thread safety
This commit is contained in:
James Newton-King
2014-04-25 22:36:35 +12:00
parent c2a9124067
commit 9133626388
18 changed files with 521 additions and 225 deletions
+2 -1
View File
@@ -313,7 +313,8 @@ namespace Newtonsoft.Json.Linq
{
JToken token = this[key];
return Extensions.Convert<JToken, T>(token);
// null check to fix MonoTouch issue - https://github.com/dolbz/Newtonsoft.Json/commit/a24e3062846b30ee505f3271ac08862bb471b822
return token == null ? default(T) : Extensions.Convert<JToken, T>(token);
}
/// <summary>