TypeParameterConstraints Enum

Namespace
Kampute.DocToolkit.Metadata
Assembly
  • Kampute.DocToolkit.dll

Definition

Specifies the constraints on a type parameter.
[Flags]
public enum TypeParameterConstraints
Attributes
Inheritance

Fields

NameValueDescription
None0No constraints.
ReferenceType1The type parameter must be a reference type.
NotNullableValueType2The type parameter must be a non-nullable value type.
DefaultConstructor4The type parameter must have a public default constructor.
AllowByRefLike8The type parameter can be a ref struct type.