-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:
@@ -14,6 +14,7 @@ namespace Newtonsoft.Json
|
||||
internal DefaultValueHandling? _defaultValueHandling;
|
||||
internal ReferenceLoopHandling? _referenceLoopHandling;
|
||||
internal ObjectCreationHandling? _objectCreationHandling;
|
||||
internal TypeNameHandling? _typeNameHandling;
|
||||
internal bool? _isReference;
|
||||
|
||||
/// <summary>
|
||||
@@ -56,6 +57,12 @@ namespace Newtonsoft.Json
|
||||
set { _objectCreationHandling = value; }
|
||||
}
|
||||
|
||||
public TypeNameHandling TypeNameHandling
|
||||
{
|
||||
get { return _typeNameHandling ?? default(TypeNameHandling); }
|
||||
set { _typeNameHandling = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets whether this property's value is serialized as a reference.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user