C# 클래스 Newtonsoft.Json.Serialization.DefaultContractResolver

상속: IContractResolver
파일 보기 프로젝트 열기: thirumg/Avro.NET 1 사용 예제들

공개 메소드들

메소드 설명
DefaultContractResolver ( ) : System

Initializes a new instance of the DefaultContractResolver class.

ResolveContract ( Type type ) : JsonContract

Resolves the contract for a given type.

보호된 메소드들

메소드 설명
CreateArrayContract ( Type objectType ) : JsonArrayContract

Creates a JsonArrayContract for the given type.

CreateDictionaryContract ( Type objectType ) : JsonDictionaryContract

Creates a JsonDictionaryContract for the given type.

CreateLinqContract ( Type objectType ) : JsonLinqContract

Creates a JsonLinqContract for the given type.

CreateMemberValueProvider ( MemberInfo member ) : IValueProvider

Creates the IValueProvider used by the serializer to get and set values from a member.

CreateObjectContract ( Type objectType ) : JsonObjectContract

Creates a JsonObjectContract for the given type.

CreatePrimitiveContract ( Type objectType ) : Newtonsoft.Json.Serialization.JsonPrimitiveContract

Creates a JsonPrimitiveContract for the given type.

CreateProperties ( JsonObjectContract contract ) : IList

Creates properties for the given JsonObjectContract.

CreateProperty ( JsonObjectContract contract, MemberInfo member ) : JsonProperty

Creates a JsonProperty for the given MemberInfo.

GetSerializableMembers ( Type objectType ) : List

Gets the serializable members for the type.

ResolveContractConverter ( Type objectType ) : JsonConverter

Resolves the default JsonConverter for the contract.

ResolvePropertyName ( string propertyName ) : string

Resolves the name of the property.

비공개 메소드들

메소드 설명
CreateContract ( Type objectType ) : JsonContract
GetClrTypeFullName ( Type type ) : string
GetParametrizedConstructor ( Type objectType ) : ConstructorInfo
InitializeContract ( JsonContract contract ) : void
IsValidCallback ( MethodInfo method, ParameterInfo parameters, Type attributeType, MethodInfo currentCallback, Type &prevAttributeType ) : bool
ShouldSerializeEntityMember ( MemberInfo memberInfo ) : bool

메소드 상세

CreateArrayContract() 보호된 메소드

Creates a JsonArrayContract for the given type.
protected CreateArrayContract ( Type objectType ) : JsonArrayContract
objectType System.Type Type of the object.
리턴 JsonArrayContract

CreateDictionaryContract() 보호된 메소드

Creates a JsonDictionaryContract for the given type.
protected CreateDictionaryContract ( Type objectType ) : JsonDictionaryContract
objectType System.Type Type of the object.
리턴 JsonDictionaryContract

CreateLinqContract() 보호된 메소드

Creates a JsonLinqContract for the given type.
protected CreateLinqContract ( Type objectType ) : JsonLinqContract
objectType System.Type Type of the object.
리턴 JsonLinqContract

CreateMemberValueProvider() 보호된 메소드

Creates the IValueProvider used by the serializer to get and set values from a member.
protected CreateMemberValueProvider ( MemberInfo member ) : IValueProvider
member System.Reflection.MemberInfo The member.
리턴 IValueProvider

CreateObjectContract() 보호된 메소드

Creates a JsonObjectContract for the given type.
protected CreateObjectContract ( Type objectType ) : JsonObjectContract
objectType System.Type Type of the object.
리턴 JsonObjectContract

CreatePrimitiveContract() 보호된 메소드

Creates a JsonPrimitiveContract for the given type.
protected CreatePrimitiveContract ( Type objectType ) : Newtonsoft.Json.Serialization.JsonPrimitiveContract
objectType System.Type Type of the object.
리턴 Newtonsoft.Json.Serialization.JsonPrimitiveContract

CreateProperties() 보호된 메소드

Creates properties for the given JsonObjectContract.
protected CreateProperties ( JsonObjectContract contract ) : IList
contract JsonObjectContract The contract to create properties for.
리턴 IList

CreateProperty() 보호된 메소드

Creates a JsonProperty for the given MemberInfo.
protected CreateProperty ( JsonObjectContract contract, MemberInfo member ) : JsonProperty
contract JsonObjectContract The member's declaring types .
member System.Reflection.MemberInfo The member to create a for.
리턴 JsonProperty

DefaultContractResolver() 공개 메소드

Initializes a new instance of the DefaultContractResolver class.
public DefaultContractResolver ( ) : System
리턴 System

GetSerializableMembers() 보호된 메소드

Gets the serializable members for the type.
protected GetSerializableMembers ( Type objectType ) : List
objectType System.Type The type to get serializable members for.
리턴 List

ResolveContract() 공개 메소드

Resolves the contract for a given type.
public ResolveContract ( Type type ) : JsonContract
type System.Type The type to resolve a contract for.
리턴 JsonContract

ResolveContractConverter() 보호된 메소드

Resolves the default JsonConverter for the contract.
protected ResolveContractConverter ( Type objectType ) : JsonConverter
objectType System.Type Type of the object.
리턴 Newtonsoft.Json.JsonConverter

ResolvePropertyName() 보호된 메소드

Resolves the name of the property.
protected ResolvePropertyName ( string propertyName ) : string
propertyName string Name of the property.
리턴 string