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
| Name | Value | Description |
|---|---|---|
| None | 0 | No constraints. |
| ReferenceType | 1 | The type parameter must be a reference type. |
| ValueType | 2 | The type parameter must be a non-nullable value type. |
| DefaultConstructor | 4 | The type parameter must have a public parameterless constructor. |
| UnmanagedType | 8 | The type parameter must be an unmanaged type. |
| NotNull | 16 | The type parameter must not be null. |
