Class DefaultContractResolver
Namespace: System.Dynamic.ExpandoObject
Assembly: Newtonsoft.Json.dll
Syntax
public class DefaultContractResolver : Newtonsoft.Json.Serialization.IContractResolver
Constructors
DefaultContractResolver()
Declaration
public DefaultContractResolver ();
Properties
DefaultMembersSearchFlags
Declaration
[System.Obsolete("DefaultMembersSearchFlags is obsolete. To modify the members serialized inherit from DefaultContractResolver and override the GetSerializableMembers method instead.")]
public System.Reflection.BindingFlags DefaultMembersSearchFlags { get; set; }
Property Value
BindingFlags
|
DynamicCodeGeneration
IgnoreSerializableAttribute
IgnoreSerializableInterface
NamingStrategy
Declaration
public Newtonsoft.Json.Serialization.NamingStrategy NamingStrategy { get; set; }
Property Value
NamingStrategy
|
SerializeCompilerGeneratedMembers
Methods
CreateArrayContract(Type)
Declaration
protected virtual Newtonsoft.Json.Serialization.JsonArrayContract CreateArrayContract (Type objectType);
Parameters
Type
objectType
|
Returns
JsonArrayContract
|
CreateConstructorParameters(ConstructorInfo, JsonPropertyCollection)
Declaration
protected virtual System.Collections.Generic.IList<Newtonsoft.Json.Serialization.JsonProperty> CreateConstructorParameters (System.Reflection.ConstructorInfo constructor, Newtonsoft.Json.Serialization.JsonPropertyCollection memberProperties);
Parameters
ConstructorInfo
constructor
|
JsonPropertyCollection
memberProperties
|
Returns
IList<JsonProperty>
|
CreateContract(Type)
Declaration
protected virtual Newtonsoft.Json.Serialization.JsonContract CreateContract (Type objectType);
Parameters
Type
objectType
|
Returns
JsonContract
|
CreateDictionaryContract(Type)
Declaration
protected virtual Newtonsoft.Json.Serialization.JsonDictionaryContract CreateDictionaryContract (Type objectType);
Parameters
Type
objectType
|
Returns
JsonDictionaryContract
|
CreateDynamicContract(Type)
Declaration
protected virtual Newtonsoft.Json.Serialization.JsonDynamicContract CreateDynamicContract (Type objectType);
Parameters
Type
objectType
|
Returns
JsonDynamicContract
|
CreateISerializableContract(Type)
Declaration
protected virtual Newtonsoft.Json.Serialization.JsonISerializableContract CreateISerializableContract (Type objectType);
Parameters
Type
objectType
|
Returns
JsonISerializableContract
|
CreateLinqContract(Type)
Declaration
protected virtual Newtonsoft.Json.Serialization.JsonLinqContract CreateLinqContract (Type objectType);
Parameters
Type
objectType
|
Returns
JsonLinqContract
|
CreateMemberValueProvider(MemberInfo)
Declaration
protected virtual Newtonsoft.Json.Serialization.IValueProvider CreateMemberValueProvider (System.Reflection.MemberInfo member);
Parameters
MemberInfo
member
|
Returns
IValueProvider
|
CreateObjectContract(Type)
Declaration
protected virtual Newtonsoft.Json.Serialization.JsonObjectContract CreateObjectContract (Type objectType);
Parameters
Type
objectType
|
Returns
JsonObjectContract
|
CreatePrimitiveContract(Type)
Declaration
protected virtual Newtonsoft.Json.Serialization.JsonPrimitiveContract CreatePrimitiveContract (Type objectType);
Parameters
Type
objectType
|
Returns
JsonPrimitiveContract
|
CreateProperties(Type, MemberSerialization)
Declaration
protected virtual System.Collections.Generic.IList<Newtonsoft.Json.Serialization.JsonProperty> CreateProperties (Type type, Newtonsoft.Json.MemberSerialization memberSerialization);
Parameters
Type
type
|
MemberSerialization
memberSerialization
|
Returns
IList<JsonProperty>
|
CreateProperty(MemberInfo, MemberSerialization)
Declaration
protected virtual Newtonsoft.Json.Serialization.JsonProperty CreateProperty (System.Reflection.MemberInfo member, Newtonsoft.Json.MemberSerialization memberSerialization);
Parameters
MemberInfo
member
|
MemberSerialization
memberSerialization
|
Returns
JsonProperty
|
CreatePropertyFromConstructorParameter(JsonProperty, ParameterInfo)
Declaration
protected virtual Newtonsoft.Json.Serialization.JsonProperty CreatePropertyFromConstructorParameter (Newtonsoft.Json.Serialization.JsonProperty matchingMemberProperty, System.Reflection.ParameterInfo parameterInfo);
Parameters
JsonProperty
matchingMemberProperty
|
ParameterInfo
parameterInfo
|
Returns
JsonProperty
|
CreateStringContract(Type)
Declaration
protected virtual Newtonsoft.Json.Serialization.JsonStringContract CreateStringContract (Type objectType);
Parameters
Type
objectType
|
Returns
JsonStringContract
|
GetResolvedPropertyName(String)
Declaration
public string GetResolvedPropertyName (string propertyName);
Parameters
String
propertyName
|
Returns
String
|
GetSerializableMembers(Type)
Declaration
protected virtual System.Collections.Generic.List<System.Reflection.MemberInfo> GetSerializableMembers (Type objectType);
Parameters
Type
objectType
|
Returns
List<MemberInfo>
|
ResolveContract(Type)
Declaration
public virtual Newtonsoft.Json.Serialization.JsonContract ResolveContract (Type type);
Parameters
Type
type
|
Returns
JsonContract
|
Implements
ResolveContractConverter(Type)
Declaration
protected virtual Newtonsoft.Json.JsonConverter ResolveContractConverter (Type objectType);
Parameters
Type
objectType
|
Returns
JsonConverter
|
ResolveDictionaryKey(String)
Declaration
protected virtual string ResolveDictionaryKey (string dictionaryKey);
Parameters
String
dictionaryKey
|
Returns
String
|
ResolveExtensionDataName(String)
Declaration
protected virtual string ResolveExtensionDataName (string extensionDataName);
Parameters
String
extensionDataName
|
Returns
String
|