C# 클래스 YAXLib.MemberWrapper

A wrapper class for members which only can be properties or member variables
파일 보기 프로젝트 열기: sinairv/YAXLib 1 사용 예제들

공개 메소드들

메소드 설명
GetOriginalValue ( object obj, object index ) : object

Gets the original value of this member in the specified object

GetRealTypeDefinition ( Type type ) : YAXTypeAttribute
GetValue ( object obj ) : object

Gets the processed value of this member in the specified object

IsAllowedToBeSerialized ( YAXSerializationFields serializationFields, bool dontSerializePropertiesWithNoSetter ) : bool

Determines whether this instance of MemberWrapper can be serialized.

IsRealTypeDefined ( Type type ) : bool
MemberWrapper ( MemberInfo memberInfo, YAXSerializer callerSerializer ) : System

Initializes a new instance of the MemberWrapper class.

SetValue ( object obj, object value ) : void

Sets the value of this member in the specified object

ToString ( ) : string

Returns a T:System.String that represents the current T:System.Object.

비공개 메소드들

메소드 설명
InitDefaultValue ( ) : void

Initializes the default value for this instance of MemberWrapper.

InitInstance ( ) : void

Initializes this instance of MemberWrapper.

ProcessYaxAttribute ( object attr ) : void

Processes the specified attribute which is an instance of YAXAttribute.

메소드 상세

GetOriginalValue() 공개 메소드

Gets the original value of this member in the specified object
public GetOriginalValue ( object obj, object index ) : object
obj object The object whose value corresponding to this instance, must be retreived.
index object The array of indeces (usually null).
리턴 object

GetRealTypeDefinition() 공개 메소드

public GetRealTypeDefinition ( Type type ) : YAXTypeAttribute
type System.Type
리턴 YAXTypeAttribute

GetValue() 공개 메소드

Gets the processed value of this member in the specified object
public GetValue ( object obj ) : object
obj object The object whose value corresponding to this instance, must be retreived.
리턴 object

IsAllowedToBeSerialized() 공개 메소드

Determines whether this instance of MemberWrapper can be serialized.
public IsAllowedToBeSerialized ( YAXSerializationFields serializationFields, bool dontSerializePropertiesWithNoSetter ) : bool
serializationFields YAXSerializationFields The serialization fields.
dontSerializePropertiesWithNoSetter bool
리턴 bool

IsRealTypeDefined() 공개 메소드

public IsRealTypeDefined ( Type type ) : bool
type System.Type
리턴 bool

MemberWrapper() 공개 메소드

Initializes a new instance of the MemberWrapper class.
public MemberWrapper ( MemberInfo memberInfo, YAXSerializer callerSerializer ) : System
memberInfo System.Reflection.MemberInfo The member-info to build this instance from.
callerSerializer YAXSerializer The caller serializer.
리턴 System

SetValue() 공개 메소드

Sets the value of this member in the specified object
public SetValue ( object obj, object value ) : void
obj object The object whose member corresponding to this instance, must be given value.
value object The value.
리턴 void

ToString() 공개 메소드

Returns a T:System.String that represents the current T:System.Object.
public ToString ( ) : string
리턴 string