-Added support for enum values to LINQ to JSON
-Added TypeNameAssemblyFormat property to JsonSerializer. Property controls whether .NET type names are written with a full or partial assembly name -Added TypeNameHandling to JsonProperty attribute. Allows a type names to be included on an individual property basis -Fixed serializing HashSet<T> -Additional permission demands added to DynamicCodeGeneration flag
This commit is contained in:
@@ -209,6 +209,8 @@ namespace Newtonsoft.Json.Linq
|
||||
else if (value is long || value is int || value is short || value is sbyte
|
||||
|| value is ulong || value is uint || value is ushort || value is byte)
|
||||
return JTokenType.Integer;
|
||||
else if (value is Enum)
|
||||
return JTokenType.Integer;
|
||||
else if (value is double || value is float || value is decimal)
|
||||
return JTokenType.Float;
|
||||
else if (value is DateTime)
|
||||
|
||||
Reference in New Issue
Block a user