Метод | Описание | |
---|---|---|
GetDictionaryInterface ( |
Gets the IDictionary<,> interface that the type implements, if any.
|
|
GetGenericInterface ( |
Gets the interface that a type implements that matches the specified generic interface definition.
|
|
GetListInterface ( |
Gets the IList<> interface that the type implements, if any.
|
|
IsSubclassOfGenericTypeDefinition ( |
Gets whether the specified type is a subclass of a generic type represented by the specified generic type definition.
|
public static GetDictionaryInterface ( |
||
type | The type of object that implements the interface. | |
Результат |
public static GetGenericInterface ( |
||
type | The type of object that implements the interface. | |
genericInterfaceDefinition | A generic type definition for an interface (e.g. typeof(IEnumerable<>)). | |
Результат |
public static GetListInterface ( |
||
type | The type of object that implements the interface. | |
Результат |
public static IsSubclassOfGenericTypeDefinition ( |
||
objectType | The type to check. | |
genericTypeDefinition | A generic type definition (e.g. typeof(List<>)) | |
Результат | bool |