ITypeParameter Interface
- Namespace
- Kampute.DocToolkit.Metadata
- Assembly
- Kampute.DocToolkit.dll
Definition
Defines a contract for accessing generic type parameter metadata.
public interface ITypeParameter : IType- Extends
- Implemented by
Properties
| Constraints | Gets the constraints applied to the type parameter. |
| DeclaringMember | Gets the member that declares this type parameter, which can be either a type or a method. |
| HasConstraints | Gets a value indicating whether the type parameter has any constraints. |
| IsGenericMethodParameter | Gets a value indicating whether the current type parameter represents a type parameter of a generic method. |
| IsGenericTypeParameter | Gets a value indicating whether the current type parameter represents a type parameter of a generic type. |
| Position | Gets the position of the type parameter in the type parameter list. |
| TypeConstraints | Gets the type constraints applied to the type parameter. |
| Variance | Gets the variance of the type parameter. |
Methods
| IsSatisfiableBy(IType) | Determines whether the constraints of this type parameter can be satisfied by the specified type. |
| IsSatisfiableBy(ITypeParameter) | Determines whether the constraints of this type parameter can be satisfied by the specified type parameter. |
Extension Methods
| GetInheritedMember(this IMember) | Retrieves the member that this member directly inherits from. |
| GetMemberDefinition(this IMember) | Retrieves the definition of the member, resolving any constructed or decorated forms to their underlying definitions. |
| GetMembers(this IType) | Gets all members directly declared by the type, excluding nested types. |
| GetMembersIncludingNested(this IType) | Gets all members of the type, including its nested types and their members at all nesting levels. |
| TryGetOwnTypeParameters(this IMember, out IEnumerable<ITypeParameter>) | Attempts to get the type parameters declared directly by the specified member if it is generic. |
