Files
Apr2020-Cpp2Il-Dump/mscorlib/System/Reflection/GenericParameterAttributes.cs
T
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

46 lines
2.5 KiB
C#

using System;
using Cpp2IlInjected;
namespace System.Reflection
{
/// <summary>Describes the constraints on a generic type parameter of a generic type or method.</summary>
// Token: 0x0200021B RID: 539
[Token(Token = "0x200021B")]
[Flags]
public enum GenericParameterAttributes
{
/// <summary>There are no special flags.</summary>
// Token: 0x04000A5C RID: 2652
[Token(Token = "0x4000A5C")]
None = 0,
/// <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: 0x04000A5D RID: 2653
[Token(Token = "0x4000A5D")]
VarianceMask = 3,
/// <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: 0x04000A5E RID: 2654
[Token(Token = "0x4000A5E")]
Covariant = 1,
/// <summary>The generic type parameter is contravariant. A contravariant type parameter can appear as a parameter type in method signatures.</summary>
// Token: 0x04000A5F RID: 2655
[Token(Token = "0x4000A5F")]
Contravariant = 2,
/// <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: 0x04000A60 RID: 2656
[Token(Token = "0x4000A60")]
SpecialConstraintMask = 28,
/// <summary>A type can be substituted for the generic type parameter only if it is a reference type.</summary>
// Token: 0x04000A61 RID: 2657
[Token(Token = "0x4000A61")]
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: 0x04000A62 RID: 2658
[Token(Token = "0x4000A62")]
NotNullableValueTypeConstraint = 8,
/// <summary>A type can be substituted for the generic type parameter only if it has a parameterless constructor.</summary>
// Token: 0x04000A63 RID: 2659
[Token(Token = "0x4000A63")]
DefaultConstructorConstraint = 16
}
}