Represents a generic parameter of a method or type.
Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
public interface ITypeParameter : INamedDeclaration, IDeclaration, IDiagnosticLocation, IMeasurable, IEquatable<IDeclaration>, IType, ICompilationElement, IDisplayable, IEquatable<IType>
Properties
Name | Description |
---|---|
HasDefaultConstructorConstraint | Gets a value indicating whether the generic parameter has the |
Index | Gets the position of the generic parameter. |
IsConstraintNullable | Gets a value indicating whether the Class constraint has the nullable annotation (?).
This property returns |
TypeConstraints | Gets the type constraints of the generic parameter. |
TypeKindConstraint | Gets the constraint on the kind of type, e.g. Class or Struct. |
Variance |
Methods
Name | Description |
---|---|
ToRef() |