-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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user