Type の呼び出しで使用されるジェネリック型の パラメーターを記述する値が含まれています。
Syntax
typedef enum CorGenericParamAttr {
gpVarianceMask = 0x0003,
gpNonVariant = 0x0000,
gpCovariant = 0x0001,
gpContravariant = 0x0002,
gpSpecialConstraintMask = 0x001C,
gpNoSpecialConstraint = 0x0000,
gpReferenceTypeConstraint = 0x0004,
gpNotNullableValueTypeConstraint = 0x0008,
gpDefaultConstructorConstraint = 0x0010,
gpAllowByRefLike = 0x0020,
} CorGenericParamAttr;
Members
| Member | Description |
|---|---|
gpVarianceMask |
パラメーターの分散は、インターフェイスとデリゲートのジェネリック パラメーターにのみ適用されます。 |
gpNonVariant |
分散がないことを示します。 |
gpCovariant |
Indicates covariance. |
gpContravariant |
Indicates contravariance. |
gpSpecialConstraintMask |
特別な制約は、任意の Type パラメーターに適用できます。 |
gpNoSpecialConstraint |
Type パラメーターに制約が適用されていないことを示します。 |
gpReferenceTypeConstraint |
Type パラメーターが参照型である必要があることを示します。 |
gpNotNullableValueTypeConstraint |
Type パラメーターが null 値にできない値型である必要があることを示します。 |
gpDefaultConstructorConstraint |
Type パラメーターに、パラメーターを受け取っていない既定のパブリック コンストラクターが必要であることを示します。 |
gpAllowByRefLike |
Type パラメーターに byref のような型を指定できることを示します。 (.NET 7 以降で利用可能)。 |
Requirements
プラットフォーム:サポートされている .NET オペレーティング システムを参照してください。
Header: CorHdr.h
.NET のバージョン: .NET Framework 2.0 以降で使用可能
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET