C# Class UtilitiesModule.ReflectionUtils

Helper methods used with reflection.
Mostrar archivo Open project: VelocityDB/VelocityDB

Public Methods

Method 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 method

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

GetDataMemberType() public static method

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

GetDataMemberValue() public static method

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
return object

GetIEnumerableElementType() public static method

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