C# Class FluentLinqToSql.ActiveRecord.NameValueDeserializer

Afficher le fichier Open project: JeremySkinner/FluentLinqToSql Class Usage Examples

Méthodes publiques

Méthode Description
Deserialize ( NameValueCollection collection, string prefix, Type targetType ) : object

Deserializes the specified request collection.

Deserialize ( NameValueCollection collection, string prefix, Type targetType, object instance ) : void

Méthodes protégées

Méthode Description
CheckPrefixInRequest ( NameValueCollection collection, string prefix ) : bool
CreateGenericListInstance ( Type targetType ) : IList
CreateInstance ( Type targetType ) : object
DeserializeArrayList ( NameValueCollection collection, string prefix, Type elementType ) : ArrayList
DeserializeGenericList ( NameValueCollection collection, string prefix, Type targetType, IList &instance ) : void
GetArrayPrefixes ( NameValueCollection collection, string prefix ) : string[]
GetComplexProperty ( object instance, PropertyInfo property ) : object
GetGenericListProperty ( object instance, PropertyInfo property ) : IList
GetProperties ( Type targetType ) : System.Reflection.PropertyInfo[]
IsGenericList ( Type instanceType ) : bool
IsSimpleProperty ( Type propertyType ) : bool
SetValue ( object instance, PropertyInfo property, IConvertible oValue ) : bool
SetValue ( object instance, PropertyInfo property, object value ) : bool

Private Methods

Méthode Description
GetConvertible ( string sValue ) : IConvertible

Method Details

CheckPrefixInRequest() protected méthode

protected CheckPrefixInRequest ( NameValueCollection collection, string prefix ) : bool
collection System.Collections.Specialized.NameValueCollection
prefix string
Résultat bool

CreateGenericListInstance() protected méthode

protected CreateGenericListInstance ( Type targetType ) : IList
targetType System.Type
Résultat IList

CreateInstance() protected méthode

protected CreateInstance ( Type targetType ) : object
targetType System.Type
Résultat object

Deserialize() public méthode

Deserializes the specified request collection.
public Deserialize ( NameValueCollection collection, string prefix, Type targetType ) : object
collection System.Collections.Specialized.NameValueCollection The collection.
prefix string The prefix.
targetType System.Type Type of the target.
Résultat object

Deserialize() public méthode

public Deserialize ( NameValueCollection collection, string prefix, Type targetType, object instance ) : void
collection System.Collections.Specialized.NameValueCollection
prefix string
targetType System.Type
instance object
Résultat void

DeserializeArrayList() protected méthode

protected DeserializeArrayList ( NameValueCollection collection, string prefix, Type elementType ) : ArrayList
collection System.Collections.Specialized.NameValueCollection
prefix string
elementType System.Type
Résultat System.Collections.ArrayList

DeserializeGenericList() protected méthode

protected DeserializeGenericList ( NameValueCollection collection, string prefix, Type targetType, IList &instance ) : void
collection System.Collections.Specialized.NameValueCollection
prefix string
targetType System.Type
instance IList
Résultat void

GetArrayPrefixes() protected méthode

protected GetArrayPrefixes ( NameValueCollection collection, string prefix ) : string[]
collection System.Collections.Specialized.NameValueCollection
prefix string
Résultat string[]

GetComplexProperty() protected méthode

protected GetComplexProperty ( object instance, PropertyInfo property ) : object
instance object
property System.Reflection.PropertyInfo
Résultat object

GetGenericListProperty() protected méthode

protected GetGenericListProperty ( object instance, PropertyInfo property ) : IList
instance object
property System.Reflection.PropertyInfo
Résultat IList

GetProperties() protected static méthode

protected static GetProperties ( Type targetType ) : System.Reflection.PropertyInfo[]
targetType System.Type
Résultat System.Reflection.PropertyInfo[]

IsGenericList() protected méthode

protected IsGenericList ( Type instanceType ) : bool
instanceType System.Type
Résultat bool

IsSimpleProperty() protected méthode

protected IsSimpleProperty ( Type propertyType ) : bool
propertyType System.Type
Résultat bool

SetValue() protected méthode

protected SetValue ( object instance, PropertyInfo property, IConvertible oValue ) : bool
instance object
property System.Reflection.PropertyInfo
oValue IConvertible
Résultat bool

SetValue() protected méthode

protected SetValue ( object instance, PropertyInfo property, object value ) : bool
instance object
property System.Reflection.PropertyInfo
value object
Résultat bool