Прочетете на английски Редактиране

Споделяне чрез


CompilerFeatureRequiredAttribute.IsOptional Property

Definition

Gets a value that indicates whether the compiler can choose to allow access to the location where this attribute is applied if it does not understand FeatureName.

C#
public bool IsOptional { get; init; }

Property Value

true to let the compiler choose to allow access to the location where this attribute is applied if it does not understand FeatureName; otherwise, false.

Applies to

Продукт Версии
.NET 7, 8, 9, 10