C# Class Platform.Xml.Serialization.SerializationMemberInfo

Stores pre calculated information about a member or type that is used when serializing that member.
Inheritance: IGetterSetter
Show file Open project: platformdotnet/Platform Class Usage Examples

Protected Properties

Property Type Description
applicableMemberAttributes Platform.Xml.Serialization.XmlSerializationAttribute[]
applicableTypeAttributes Platform.Xml.Serialization.XmlSerializationAttribute[]
getterSetter IGetterSetter
memberInfo System.Reflection.MemberInfo
polymorphicTypeProvider IXmlDynamicTypeProvider
returnType System.Type
serializeAsCData bool
serializeAsValueNodeAttributeName string
serializeIfNull bool
serializedName string
serializedNamespace string
serializedNodeType System.Xml.XmlNodeType
treatAsNullIfEmpty bool
typeSerializer TypeSerializer
typeSerializerCache TypeSerializerCache

Public Methods

Method Description
Equals ( object obj ) : bool
GetApplicableAttributes ( Type types ) : Platform.Xml.Serialization.XmlSerializationAttribute[]
GetApplicableAttributes ( bool includeTypeAttributes, Type types ) : Platform.Xml.Serialization.XmlSerializationAttribute[]
GetApplicableAttributes ( bool includeTypeAttributes, bool includeAttributeSubclasses, Type types ) : Platform.Xml.Serialization.XmlSerializationAttribute[]
GetFirstApplicableAttribute ( Type type ) : XmlSerializationAttribute
GetFirstApplicableAttribute ( bool includeTypeAttributes ) : XmlSerializationAttribute
GetFirstApplicableAttribute ( bool includeTypeAttributes, Type type ) : XmlSerializationAttribute
GetHashCode ( ) : int
GetReturnType ( XmlReader reader ) : Type
GetReturnType ( object obj ) : Type
GetSerializer ( XmlReader reader ) : TypeSerializer
GetSerializer ( object obj ) : TypeSerializer
GetValue ( object obj ) : object
HasApplicableAttribute ( Type attributeType ) : bool
SerializationMemberInfo ( MemberInfo memberInfo, SerializerOptions options, TypeSerializerCache cache ) : System
SerializationMemberInfo ( MemberInfo memberInfo, SerializerOptions options, TypeSerializerCache cache, bool includeIfUnattributed ) : System
SetValue ( object obj, object val ) : void
WalkApplicableAttributes ( bool includeTypeAttributes, bool includeAttributeSubclasses, Type types ) : System.Collections.Generic.IEnumerable

Protected Methods

Method Description
Scan ( SerializerOptions options, bool includeIfUnattributed ) : void

Prescans the type.

Private Methods

Method Description
ExtractApplicableAttributes ( object attributes, SerializerOptions options ) : Platform.Xml.Serialization.XmlSerializationAttribute[]
GetAttributeDeclaringType ( Type type, Attribute attribute ) : Type
GetCustomAttributes ( MemberInfo memberInfo, Type type, bool inherit ) : object[]
GetDeclaredType ( MemberInfo memberInfo ) : Type
LoadAttributes ( SerializerOptions options ) : void

Method Details

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetApplicableAttributes() public method

public GetApplicableAttributes ( Type types ) : Platform.Xml.Serialization.XmlSerializationAttribute[]
types System.Type
return Platform.Xml.Serialization.XmlSerializationAttribute[]

GetApplicableAttributes() public method

public GetApplicableAttributes ( bool includeTypeAttributes, Type types ) : Platform.Xml.Serialization.XmlSerializationAttribute[]
includeTypeAttributes bool
types System.Type
return Platform.Xml.Serialization.XmlSerializationAttribute[]

GetApplicableAttributes() public method

public GetApplicableAttributes ( bool includeTypeAttributes, bool includeAttributeSubclasses, Type types ) : Platform.Xml.Serialization.XmlSerializationAttribute[]
includeTypeAttributes bool
includeAttributeSubclasses bool
types System.Type
return Platform.Xml.Serialization.XmlSerializationAttribute[]

GetFirstApplicableAttribute() public method

public GetFirstApplicableAttribute ( Type type ) : XmlSerializationAttribute
type System.Type
return XmlSerializationAttribute

GetFirstApplicableAttribute() public method

public GetFirstApplicableAttribute ( bool includeTypeAttributes ) : XmlSerializationAttribute
includeTypeAttributes bool
return XmlSerializationAttribute

GetFirstApplicableAttribute() public method

public GetFirstApplicableAttribute ( bool includeTypeAttributes, Type type ) : XmlSerializationAttribute
includeTypeAttributes bool
type System.Type
return XmlSerializationAttribute

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetReturnType() public method

public GetReturnType ( XmlReader reader ) : Type
reader System.Xml.XmlReader
return System.Type

GetReturnType() public method

public GetReturnType ( object obj ) : Type
obj object
return System.Type

GetSerializer() public method

public GetSerializer ( XmlReader reader ) : TypeSerializer
reader System.Xml.XmlReader
return TypeSerializer

GetSerializer() public method

public GetSerializer ( object obj ) : TypeSerializer
obj object
return TypeSerializer

GetValue() public method

public GetValue ( object obj ) : object
obj object
return object

HasApplicableAttribute() public method

public HasApplicableAttribute ( Type attributeType ) : bool
attributeType System.Type
return bool

Scan() protected method

Prescans the type.
protected Scan ( SerializerOptions options, bool includeIfUnattributed ) : void
options SerializerOptions
includeIfUnattributed bool
return void

SerializationMemberInfo() public method

public SerializationMemberInfo ( MemberInfo memberInfo, SerializerOptions options, TypeSerializerCache cache ) : System
memberInfo System.Reflection.MemberInfo
options SerializerOptions
cache TypeSerializerCache
return System

SerializationMemberInfo() public method

public SerializationMemberInfo ( MemberInfo memberInfo, SerializerOptions options, TypeSerializerCache cache, bool includeIfUnattributed ) : System
memberInfo System.Reflection.MemberInfo
options SerializerOptions
cache TypeSerializerCache
includeIfUnattributed bool
return System

SetValue() public method

public SetValue ( object obj, object val ) : void
obj object
val object
return void

WalkApplicableAttributes() public method

public WalkApplicableAttributes ( bool includeTypeAttributes, bool includeAttributeSubclasses, Type types ) : System.Collections.Generic.IEnumerable
includeTypeAttributes bool
includeAttributeSubclasses bool
types System.Type
return System.Collections.Generic.IEnumerable

Property Details

applicableMemberAttributes protected property

protected XmlSerializationAttribute[],Platform.Xml.Serialization applicableMemberAttributes
return Platform.Xml.Serialization.XmlSerializationAttribute[]

applicableTypeAttributes protected property

protected XmlSerializationAttribute[],Platform.Xml.Serialization applicableTypeAttributes
return Platform.Xml.Serialization.XmlSerializationAttribute[]

getterSetter protected property

protected IGetterSetter getterSetter
return IGetterSetter

memberInfo protected property

protected MemberInfo,System.Reflection memberInfo
return System.Reflection.MemberInfo

polymorphicTypeProvider protected property

protected IXmlDynamicTypeProvider polymorphicTypeProvider
return IXmlDynamicTypeProvider

returnType protected property

protected Type,System returnType
return System.Type

serializeAsCData protected property

protected bool serializeAsCData
return bool

serializeAsValueNodeAttributeName protected property

protected string serializeAsValueNodeAttributeName
return string

serializeIfNull protected property

protected bool serializeIfNull
return bool

serializedName protected property

protected string serializedName
return string

serializedNamespace protected property

protected string serializedNamespace
return string

serializedNodeType protected property

protected XmlNodeType,System.Xml serializedNodeType
return System.Xml.XmlNodeType

treatAsNullIfEmpty protected property

protected bool treatAsNullIfEmpty
return bool

typeSerializer protected property

protected TypeSerializer,Platform.Xml.Serialization typeSerializer
return TypeSerializer

typeSerializerCache protected property

protected TypeSerializerCache typeSerializerCache
return TypeSerializerCache