GenericCapableTypeAdapter Class
- Namespace
- Kampute.DocToolkit.Metadata.Adapters
- Assembly
Definition
An abstract adapter that wraps a generic-capable
Type and provides metadata access.
public abstract class GenericCapableTypeAdapter : TypeAdapter, IGenericCapableType
- Inheritance
- Implements
- Inherited by
Thread Safety
Constructors
Properties
| GenericTypeDefinition | Gets the generic type definition if the type is a constructed generic type. |
| IsConstructedGenericType | Gets a value indicating whether the type is a constructed generic type. |
| IsDirectDeclaration | Gets a value indicating whether the member represents a direct declaration. |
| IsGenericTypeDefinition | Gets a value indicating whether the type is a generic type definition. |
| OwnGenericParameterRange | Gets the offset and number of generic parameters belonging exclusively to this type, excluding any from its declaring type, if the type is generic. |
| SimpleName | Gets the name of the type without any generic arity suffix. |
| TypeArguments | Gets the type arguments provided to the type if the type is a constructed generic type. |
| TypeParameters | Gets the type parameters declared by the type and its declaring types if the type is a generic type definition. |
Methods
| ConstructSignature(bool) | Constructs the signature of the type. |
| GetGenericTypeDefinition() | Retrieves the generic type definition if the type is a constructed generic type. |
| GetOwnGenericParameterRange() | Retrieves the offset and number of generic parameters belonging exclusively to this type, excluding any from its declaring type, if the type is generic. |
| GetTypeArguments() | Retrieves the type arguments provided to the type if the type is a constructed generic type. |
| GetTypeParameters() | Retrieves the type parameters defined by the type if the type is a generic type definition. |
| IsAssignableFrom(IType) | Determines whether the instances of the specified type can be assigned to variables of the current type. |
Extension Methods