C# Class UtilitiesModule.ReflectionUtils

Helper methods used with reflection.
Afficher le fichier Open project: VelocityDB/VelocityDB

Méthodes publiques

Méthode Description
FindIEnumerable ( Type pSeqType ) : Type

Finds type that implements IEnumerable so can get elemtent type

GetDataMemberType ( MemberInfo pMember ) : Type

Get type of a MemberInfo which is a FieldInfo or PropertyInfo.

GetDataMemberValue ( MemberInfo pMember, object pObj ) : object

Get value of a MemberInfo which is a FieldInfo or PropertyInfo.

GetIEnumerableElementType ( Type pType ) : Type

Gets the element type for enumerable

Method Details

FindIEnumerable() public static méthode

Finds type that implements IEnumerable so can get elemtent type
public static FindIEnumerable ( Type pSeqType ) : Type
pSeqType System.Type The Type to check
Résultat System.Type

GetDataMemberType() public static méthode

Get type of a MemberInfo which is a FieldInfo or PropertyInfo.
public static GetDataMemberType ( MemberInfo pMember ) : Type
pMember System.Reflection.MemberInfo
Résultat System.Type

GetDataMemberValue() public static méthode

Get value of a MemberInfo which is a FieldInfo or PropertyInfo.
public static GetDataMemberValue ( MemberInfo pMember, object pObj ) : object
pMember System.Reflection.MemberInfo
pObj object
Résultat object

GetIEnumerableElementType() public static méthode

Gets the element type for enumerable
public static GetIEnumerableElementType ( Type pType ) : Type
pType System.Type The pType to inspect.
Résultat System.Type