Method | Description | |
---|---|---|
GetCreatableTypesDeriving ( |
Returns all types that derive from the base type. This includes generic type definitions, which when returned will have appropriate constructor values injected.
|
|
GetExactImplementation ( this type, |
Searches for a particular implementation of the given parent type inside of the type. This is particularly useful if the interface type is an open type, ie, typeof(IFace{}), because this method will then return IFace{} but with appropriate type parameters inserted.
|
|
GetObjectTypeNameSafe ( object obj ) : string |
Tries to fetch the given CSharpName of the given object type, or null if the object is null.
|
|
GetTypesDeriving ( |
Method | Description | |
---|---|---|
GetIndexOfName ( |
Helper method to return the index of the Type in the array that has the given Name (or - 1 if the item is not in the array).
|
|
SelectBestTypeParameters ( List |
Orders the given types parameter array so that the order most closely matches the given genericArguments array
|
|
TryConstructAssignableGenericType ( |
Attempts to create an instance of openGenericType such that it is can be assigned to baseType.
|
|
fiReflectionUtility ( ) : System |
public static GetCreatableTypesDeriving ( |
||
baseType | The base parent type. | |
return | List |
public static GetExactImplementation ( this type, |
||
type | this | The base type to search for interface |
parentType | /// The parent type to search for. Can be an open generic type. /// | |
return |
public static GetObjectTypeNameSafe ( object obj ) : string | ||
obj | object | |
return | string |
public static GetTypesDeriving ( |
||
baseType | ||
return | List |