Type reflection utility methods. Is generally slow. More...
Static Public Member Functions | |
static Type | FindType (string typeName) |
Find a type by a given name inside all loaded assemblies. More... | |
static T | GetAttribute< T > (this Type t) |
Get an attribute from the type. More... | |
static IEnumerable< Type > | GetLoadableTypes (this Assembly assembly) |
Get a list of all types inside a given assembly. More... | |
static IEnumerable< Type > | GetSubClasses (this Type type, Assembly asm) |
Get all types that are subclasses to the given type found inside the assembly. More... | |
static IEnumerable< Type > | GetSubClasses (this Type type, params Assembly[] assemblies) |
Get all types that are subclasses to the given type found inside the given assemblies. More... | |
static IEnumerable< Type > | GetSubClasses (this Type type, params String[] assemblies) |
Get all types that are subclasses to the given type found inside the given assembly names. More... | |
static IEnumerable< Type > | GetTypesImplementingInterface (this Type type, Assembly asm) |
Get all types that are implementing the given interface found inside the assembly. More... | |
static IEnumerable< QTuple< Type, T > > | GetTypesWithAttribute< T > (Assembly asm) |
Get all types annotated with the given attribute found inside the given assembly. More... | |
static IEnumerable< QTuple< Type, T > > | GetTypesWithAttribute< T > (params String[] assemblies) |
Get all types annotated with the given attribute found inside the given assembly names. More... | |
Type reflection utility methods. Is generally slow.
|
inlinestatic |
Get all types that are subclasses to the given type found inside the given assembly names.
type | Input type |
assemblies | Assembly names to search |
|
inlinestatic |
Get all types that are subclasses to the given type found inside the given assemblies.
type | Input type |
assemblies | Assemblies to search |
|
inlinestatic |
Get all types that are subclasses to the given type found inside the assembly.
type | Input type |
asm | Assembly to search |
|
inlinestatic |
Get all types that are implementing the given interface found inside the assembly.
type | Interface type |
asm | Assembly to search |
|
inlinestatic |
Get all types annotated with the given attribute found inside the given assembly names.
T | Attribute type |
assemblies | Assemblies to search |
T | : | Attribute |
|
inlinestatic |
Get all types annotated with the given attribute found inside the given assembly.
T | Attribute type |
asm | Assembly to search |
T | : | Attribute |
|
inlinestatic |
Get an attribute from the type.
T | Attribute type |
t | Type to check for the attribute |
null
T | : | Attribute |
|
inlinestatic |
Find a type by a given name inside all loaded assemblies.
typeName | Type name |
null
when not found
|
inlinestatic |
Get a list of all types inside a given assembly.
assembly | Assembly to search |
ArgumentNullException | Is raised if the assembly is null |