C# Class FrameDAL.Utility.TypeUtil

Exibir arquivo Open project: vincentlauvlwj/FrameDAL

Public Methods

Method Description
ConvertType ( object value, Type t ) : object
FindIEnumerable ( Type seqType ) : Type
GetElementType ( Type seqType ) : Type
GetMemberType ( MemberInfo mi ) : Type
GetNonNullableType ( Type type ) : Type
GetSequenceType ( Type elementType ) : Type
IsNullAssignable ( Type type ) : bool
IsNullableType ( Type type ) : bool

Method Details

ConvertType() public static method

public static ConvertType ( object value, Type t ) : object
value object
t System.Type
return object

FindIEnumerable() public static method

public static FindIEnumerable ( Type seqType ) : Type
seqType System.Type
return System.Type

GetElementType() public static method

public static GetElementType ( Type seqType ) : Type
seqType System.Type
return System.Type

GetMemberType() public static method

public static GetMemberType ( MemberInfo mi ) : Type
mi System.Reflection.MemberInfo
return System.Type

GetNonNullableType() public static method

public static GetNonNullableType ( Type type ) : Type
type System.Type
return System.Type

GetSequenceType() public static method

public static GetSequenceType ( Type elementType ) : Type
elementType System.Type
return System.Type

IsNullAssignable() public static method

public static IsNullAssignable ( Type type ) : bool
type System.Type
return bool

IsNullableType() public static method

public static IsNullableType ( Type type ) : bool
type System.Type
return bool