메소드 | 설명 | |
---|---|---|
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 |
리턴 | IEnumerable |
public static GetEnumerableType ( this type ) : |
||
type | this | The |
리턴 |
public static GetGenericTypeImplementations ( this type, |
||
type | this | The type to examine. |
interfaceOrBaseType | The generic type to be queried for. | |
리턴 | IEnumerable |
public static IsCastableEnumerableType ( this type ) : bool | ||
type | this | The type. |
리턴 | bool |
public static IsCollectionType ( this type ) : bool | ||
type | this | The type. |
리턴 | bool |
public static IsEnumerableOfKeyValueType ( this type ) : bool | ||
type | this | The type. |
리턴 | bool |
public static IsEnumerableOfType ( this type, |
||
type | this | The type. |
typeArgument | The generic type argument. | |
리턴 | bool |
public static IsEnumerableType ( this type ) : bool | ||
type | this | The type. |
리턴 | bool |
public static TryGetElementType ( this type, |
||
type | this | The type to examine. |
interfaceOrBaseType | The generic type to be queried for. | |
리턴 |