Метод | Описание | |
---|---|---|
GetInterface ( this type, |
Searches for a particular implementation of the given interface 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.
|
|
HasParent ( this type, |
Searches for a particular implementation of the given 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.
|
|
IsImplementationOf ( this type, |
Returns true if the baseType is an implementation of the given interface type. The interface type can be generic.
|
|
IsNullableType ( this type ) : bool |
Returns true if the given type is nullable. This *should* always return false if the type was fetched via GetType() according to the .NET docs at http://msdn.microsoft.com/en-us/library/ms366789.aspx. |
Метод | Описание | |
---|---|---|
CompareTypes ( |
public static GetInterface ( this type, |
||
type | this | The base type to search for interface |
interfaceType | /// The interface type to search for. Can be an open generic type. /// | |
Результат |
public static HasParent ( this type, |
||
type | this | The base type to search for interface |
parentType | /// The interface type to search for. Can be an open generic type. /// | |
Результат | bool |
public static IsImplementationOf ( this type, |
||
type | this | /// The type to search for an implementation of the given interface /// |
interfaceType | The interface type to search for | |
Результат | bool |
public static IsNullableType ( this type ) : bool | ||
type | this | |
Результат | bool |