MetalamaAPI documentationAspect APIMetalama.​Framework.​Code.​Declaration­BuildersIType­Parameter­Builder
Open sandboxFocus

ITypeParameterBuilder Interface

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

Properties

Name Description
HasDefaultConstructorConstraint

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

IsConstraintNullable
Name
TypeKindConstraint
Variance

Methods

Name Description
AddTypeConstraint(IType)
AddTypeConstraint(Type)