Method | Description | |
---|---|---|
GetBaseTypes ( this type ) : IEnumerable |
Gets the base types that the given type inherits from
|
|
GetEnumerableType ( this type ) : |
Gets the type of the enumerable object
|
|
GetGenericTypeImplementations ( this type, |
Determine if the given type implements the given generic interface or derives from the given generic type, and if so return the concrete types implemented.
|
|
IsCastableEnumerableType ( this type ) : bool |
Determines whether the specified type is an enumerable type that is safe to cast following processing via a type converter.
|
|
IsCollectionType ( this type ) : bool |
Determines whether the specified type is a collection type.
|
|
IsEnumerableOfKeyValueType ( this type ) : bool |
Determines whether the specified type is an enumerable type containing a key value pair as the generic type parameter.
|
|
IsEnumerableOfType ( this type, |
Determines whether the specified type is an enumerable of the given argument type.
|
|
IsEnumerableType ( this type ) : bool |
Determines whether the specified type is an enumerable type.
|
|
TryGetElementType ( this type, |
Determine if the given type implements the given generic interface or derives from the given generic type, and if so return the element type of the collection. If the type implements the generic interface several times
|
public static GetBaseTypes ( this type ) : IEnumerable |
||
type | this | The |
return | IEnumerable |
public static GetEnumerableType ( this type ) : |
||
type | this | The |
return |
public static GetGenericTypeImplementations ( this type, |
||
type | this | The type to examine. |
interfaceOrBaseType | The generic type to be queried for. | |
return | IEnumerable |
public static IsCastableEnumerableType ( this type ) : bool | ||
type | this | The type. |
return | bool |
public static IsCollectionType ( this type ) : bool | ||
type | this | The type. |
return | bool |
public static IsEnumerableOfKeyValueType ( this type ) : bool | ||
type | this | The type. |
return | bool |
public static IsEnumerableOfType ( this type, |
||
type | this | The type. |
typeArgument | The generic type argument. | |
return | bool |
public static IsEnumerableType ( this type ) : bool | ||
type | this | The type. |
return | bool |
public static TryGetElementType ( this type, |
||
type | this | The type to examine. |
interfaceOrBaseType | The generic type to be queried for. | |
return |