36 lines
2.2 KiB
C#
36 lines
2.2 KiB
C#
using System;
|
|
|
|
namespace System.Reflection
|
|
{
|
|
/// <summary>Describes the constraints on a generic type parameter of a generic type or method.</summary>
|
|
// Token: 0x02000243 RID: 579
|
|
[Flags]
|
|
public enum GenericParameterAttributes
|
|
{
|
|
/// <summary>The generic type parameter is covariant. A covariant type parameter can appear as the result type of a method, the type of a read-only field, a declared base type, or an implemented interface.</summary>
|
|
// Token: 0x04000A4F RID: 2639
|
|
Covariant = 1,
|
|
/// <summary>The generic type parameter is contravariant. A contravariant type parameter can appear as a parameter type in method signatures. </summary>
|
|
// Token: 0x04000A50 RID: 2640
|
|
Contravariant = 2,
|
|
/// <summary>Selects the combination of all variance flags. This value is the result of using logical OR to combine the following flags: <see cref="F:System.Reflection.GenericParameterAttributes.Contravariant" /> and <see cref="F:System.Reflection.GenericParameterAttributes.Covariant" />.</summary>
|
|
// Token: 0x04000A51 RID: 2641
|
|
VarianceMask = 3,
|
|
/// <summary>There are no special flags.</summary>
|
|
// Token: 0x04000A52 RID: 2642
|
|
None = 0,
|
|
/// <summary>A type can be substituted for the generic type parameter only if it is a reference type.</summary>
|
|
// Token: 0x04000A53 RID: 2643
|
|
ReferenceTypeConstraint = 4,
|
|
/// <summary>A type can be substituted for the generic type parameter only if it is a value type and is not nullable.</summary>
|
|
// Token: 0x04000A54 RID: 2644
|
|
NotNullableValueTypeConstraint = 8,
|
|
/// <summary>A type can be substituted for the generic type parameter only if it has a parameterless constructor.</summary>
|
|
// Token: 0x04000A55 RID: 2645
|
|
DefaultConstructorConstraint = 16,
|
|
/// <summary>Selects the combination of all special constraint flags. This value is the result of using logical OR to combine the following flags: <see cref="F:System.Reflection.GenericParameterAttributes.DefaultConstructorConstraint" />, <see cref="F:System.Reflection.GenericParameterAttributes.ReferenceTypeConstraint" />, and <see cref="F:System.Reflection.GenericParameterAttributes.NotNullableValueTypeConstraint" />.</summary>
|
|
// Token: 0x04000A56 RID: 2646
|
|
SpecialConstraintMask = 28
|
|
}
|
|
}
|