C# Класс FluentLinqToSql.ActiveRecord.NameValueDeserializer

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Deserialize ( NameValueCollection collection, string prefix, Type targetType ) : object

Deserializes the specified request collection.

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

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
GetConvertible ( string sValue ) : IConvertible

Описание методов

CheckPrefixInRequest() защищенный Метод

protected CheckPrefixInRequest ( NameValueCollection collection, string prefix ) : bool
collection System.Collections.Specialized.NameValueCollection
prefix string
Результат bool

CreateGenericListInstance() защищенный Метод

protected CreateGenericListInstance ( Type targetType ) : IList
targetType System.Type
Результат IList

CreateInstance() защищенный Метод

protected CreateInstance ( Type targetType ) : object
targetType System.Type
Результат object

Deserialize() публичный Метод

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.
Результат object

Deserialize() публичный Метод

public Deserialize ( NameValueCollection collection, string prefix, Type targetType, object instance ) : void
collection System.Collections.Specialized.NameValueCollection
prefix string
targetType System.Type
instance object
Результат void

DeserializeArrayList() защищенный Метод

protected DeserializeArrayList ( NameValueCollection collection, string prefix, Type elementType ) : ArrayList
collection System.Collections.Specialized.NameValueCollection
prefix string
elementType System.Type
Результат System.Collections.ArrayList

DeserializeGenericList() защищенный Метод

protected DeserializeGenericList ( NameValueCollection collection, string prefix, Type targetType, IList &instance ) : void
collection System.Collections.Specialized.NameValueCollection
prefix string
targetType System.Type
instance IList
Результат void

GetArrayPrefixes() защищенный Метод

protected GetArrayPrefixes ( NameValueCollection collection, string prefix ) : string[]
collection System.Collections.Specialized.NameValueCollection
prefix string
Результат string[]

GetComplexProperty() защищенный Метод

protected GetComplexProperty ( object instance, PropertyInfo property ) : object
instance object
property System.Reflection.PropertyInfo
Результат object

GetGenericListProperty() защищенный Метод

protected GetGenericListProperty ( object instance, PropertyInfo property ) : IList
instance object
property System.Reflection.PropertyInfo
Результат IList

GetProperties() защищенный статический Метод

protected static GetProperties ( Type targetType ) : System.Reflection.PropertyInfo[]
targetType System.Type
Результат System.Reflection.PropertyInfo[]

IsGenericList() защищенный Метод

protected IsGenericList ( Type instanceType ) : bool
instanceType System.Type
Результат bool

IsSimpleProperty() защищенный Метод

protected IsSimpleProperty ( Type propertyType ) : bool
propertyType System.Type
Результат bool

SetValue() защищенный Метод

protected SetValue ( object instance, PropertyInfo property, IConvertible oValue ) : bool
instance object
property System.Reflection.PropertyInfo
oValue IConvertible
Результат bool

SetValue() защищенный Метод

protected SetValue ( object instance, PropertyInfo property, object value ) : bool
instance object
property System.Reflection.PropertyInfo
value object
Результат bool