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.
ValueType2The type parameter must be a non-nullable value type.
DefaultConstructor4The type parameter must have a public parameterless constructor.
UnmanagedType8The type parameter must be an unmanaged type.
NotNull16The type parameter must not be null.