C# 클래스 FlatRedBall.Content.ObjectMapper

Used to perform methods defined in a MappingMethods class on properties within a class.
The ObjectMapper can be used to perform tasks like code generation and serialization of objects.
파일 보기 프로젝트 열기: vchelaru/FlatRedBall

공개 메소드들

메소드 설명
MapObject ( Type typeOfObjectToMap, MappingMethods mappingMethods ) : void
MapObject ( object objectToMap, MappingMethods mappingMethods ) : void

Pass an object and a MappingMethods and MapObject will map each member in that object to the corresponding method from the mappingMethods.

MapObject ( object objectToMap, MappingMethods mappingMethods, Type typeOfArgumentObject ) : void

비공개 메소드들

메소드 설명
GetMembers ( Type valueType, List acceptedMemberTypes, BindingFlags bitMask ) : List
GetSizeOfMember ( FieldInfo member, int &size, Type &genericType, bool &isGeneric ) : void
GetSizeOfMember ( PropertyInfo member, int &size, Type &genericType, bool &isGeneric ) : void
MapMember ( MemberInfo member, MappingMethods mappingMethods, object value ) : void
SortMembersByName ( MemberInfo m1, MemberInfo m2 ) : int
SortMembersBySizeAndName ( MemberInfo m1, MemberInfo m2 ) : int

메소드 상세

MapObject() 공개 메소드

public MapObject ( Type typeOfObjectToMap, MappingMethods mappingMethods ) : void
typeOfObjectToMap System.Type
mappingMethods MappingMethods
리턴 void

MapObject() 공개 메소드

Pass an object and a MappingMethods and MapObject will map each member in that object to the corresponding method from the mappingMethods.
public MapObject ( object objectToMap, MappingMethods mappingMethods ) : void
objectToMap object object whose members will be called on.
mappingMethods MappingMethods MappingMethods which has dictionaries of members/methods.
리턴 void

MapObject() 공개 메소드

public MapObject ( object objectToMap, MappingMethods mappingMethods, Type typeOfArgumentObject ) : void
objectToMap object
mappingMethods MappingMethods
typeOfArgumentObject System.Type
리턴 void