C# Class Microsoft.Samples.Synchronization.ClientServices.Formatters.ReflectionUtility

Class that will use .NET Reflection to serialize and deserialize an Entity to Atom
Afficher le fichier Open project: rafek/SyncFx Class Usage Examples

Méthodes publiques

Méthode Description
GetObjectForType ( EntryInfoWrapper wrapper, Type knownTypes ) : IOfflineEntity
GetPrimaryKeyString ( IOfflineEntity live ) : string

Build the OData Atom primary keystring representation

GetPrimaryKeysPropertyInfoMapping ( Type type ) : System.Reflection.PropertyInfo[]

Get the PropertyInfo array for all Key fields

GetPropertyInfoMapping ( Type type ) : System.Reflection.PropertyInfo[]

Private Methods

Méthode Description
GetValueFromType ( Type type, string value ) : object

Method Details

GetObjectForType() public static méthode

public static GetObjectForType ( EntryInfoWrapper wrapper, Type knownTypes ) : IOfflineEntity
wrapper EntryInfoWrapper
knownTypes System.Type
Résultat IOfflineEntity

GetPrimaryKeyString() public static méthode

Build the OData Atom primary keystring representation
public static GetPrimaryKeyString ( IOfflineEntity live ) : string
live IOfflineEntity Entity for which primary key is required
Résultat string

GetPrimaryKeysPropertyInfoMapping() public static méthode

Get the PropertyInfo array for all Key fields
public static GetPrimaryKeysPropertyInfoMapping ( Type type ) : System.Reflection.PropertyInfo[]
type System.Type Type to reflect on
Résultat System.Reflection.PropertyInfo[]

GetPropertyInfoMapping() public static méthode

public static GetPropertyInfoMapping ( Type type ) : System.Reflection.PropertyInfo[]
type System.Type
Résultat System.Reflection.PropertyInfo[]