-Added JValue.CreateNull and JValue.CreateUndefined

This commit is contained in:
James Newton-King
2014-04-29 12:20:44 +12:00
parent 7458cefe95
commit bbcc7e4d54
14 changed files with 71 additions and 38 deletions
+2 -2
View File
@@ -1861,11 +1861,11 @@ namespace Newtonsoft.Json.Linq
v.SetLineInfo(lineInfo);
return v;
case JsonToken.Null:
v = new JValue(null, JTokenType.Null);
v = JValue.CreateNull();
v.SetLineInfo(lineInfo);
return v;
case JsonToken.Undefined:
v = new JValue(null, JTokenType.Undefined);
v = JValue.CreateUndefined();
v.SetLineInfo(lineInfo);
return v;
default: