Gets a combination of System.Reflection.GenericParameterAttributes flags that describe the covariance and special constraints of the current generic type parameter.
A System.Reflection.GenericParameterAttributes value that describes the variance and special constraints of the current generic type parameter.
Type Reason InvalidOperationException The current Type object is not a generic type parameter. That is, the Type.IsGenericParameter property returns false.
The value of this property contains flags that describe whether the current generic type parameter is covariant, and flags that describe any special constraints. Use the System.Reflection.GenericParameterAttributes.VarianceMask value to select the covariance flags, and use the System.Reflection.GenericParameterAttributes.SpecialConstraintMask value to select the constraint flags.
For a list of the invariant conditions for terms used in generic reflection, see the Type.IsGenericType property remarks.