C# Class 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.
Afficher le fichier Open project: vchelaru/FlatRedBall

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

MapObject() public méthode

public MapObject ( Type typeOfObjectToMap, MappingMethods mappingMethods ) : void
typeOfObjectToMap System.Type
mappingMethods MappingMethods
Résultat void

MapObject() public méthode

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.
Résultat void

MapObject() public méthode

public MapObject ( object objectToMap, MappingMethods mappingMethods, Type typeOfArgumentObject ) : void
objectToMap object
mappingMethods MappingMethods
typeOfArgumentObject System.Type
Résultat void