Open sandboxFocus

Interface ITypeParameterBuilder

Allows to complete the construction of a type parameter that has been created by an advice.

Namespace: Metalama.Framework.Code.DeclarationBuilders
Assembly: Metalama.Framework.dll
Syntax
public interface ITypeParameterBuilder : IDeclarationBuilder, ITypeParameter, INamedDeclaration, IDeclaration, IDiagnosticLocation, IMeasurable, IEquatable<IDeclaration>, IType, ICompilationElement, IDisplayable, IEquatable<IType>

Properties

Name Description
AllowsRefStruct

Gets or sets a value indicating whether the type parameter allows ref struct types.

HasDefaultConstructorConstraint

Gets or sets a value indicating whether the generic parameter has the new() constraint.

IsConstraintNullable

Gets or sets a value indicating whether the constraint type is nullable.

Name

Gets or sets the name of the type parameter.

TypeKindConstraint

Gets or sets the type kind constraint (e.g., class, struct, unmanaged).

Variance

Gets or sets the variance kind (e.g., in for contravariance, out for covariance).

Methods

Name Description
AddTypeConstraint(IType)

Adds a type constraint to the type parameter.

AddTypeConstraint(Type)

Adds a type constraint to the type parameter.

Extension Methods

See Also