TypeExtension Class Reference

Contains functions that operate on a System.Type, or, on a given object's Systsme.Type.

Static Public Member Functions

static List< MemberInfo > FindAllPublicAndPrivateMembersInObjectsTypeAndBaseTypes (object instance, MemberTypes memerTypesToInclude=MemberTypes.Field|MemberTypes.Method|MemberTypes.Property)
 Examine this type of the object provided, and finds all it's members, public and private, it then searches parent types for more private members.
 
static List< MemberInfo > FindAllPublicAndPrivateMembersInTypeAndBaseTypes (this Type typeToSearch, MemberTypes memerTypesToInclude=MemberTypes.Field|MemberTypes.Method|MemberTypes.Property)
 Examine this type of the object provided, and finds all it's members, public and private, it then searches parent types for more private members.
 
static Type GetEnumerableElementType (this Type collectionType)
 Given the type of an enumeration, returns the type of it's elements.