IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute Class Referencesealed

Indicates that compiler support for a particular feature is required for the location where this attribute is applied. More...

Inheritance diagram for System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute:

Public Member Functions

 CompilerFeatureRequiredAttribute (string featureName)
 

Static Public Attributes

const string RefStructs = nameof(RefStructs)
 The FeatureName used for the ref structs C# feature.
 
const string RequiredMembers = nameof(RequiredMembers)
 The FeatureName used for the required members C# feature.
 

Properties

string FeatureName [get]
 The name of the compiler feature.
 
bool IsOptional [get]
 If true, the compiler can choose to allow access to the location where this attribute is applied if it does not understand FeatureName.
 

Detailed Description

Indicates that compiler support for a particular feature is required for the location where this attribute is applied.

Definition at line 10 of file CompilerFeatureRequiredAttribute.cs.

Constructor & Destructor Documentation

◆ CompilerFeatureRequiredAttribute()

System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.CompilerFeatureRequiredAttribute ( string featureName)

Definition at line 12 of file CompilerFeatureRequiredAttribute.cs.

13 {
14 FeatureName = featureName;
15 }

Member Data Documentation

◆ RefStructs

const string System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.RefStructs = nameof(RefStructs)
static

The FeatureName used for the ref structs C# feature.

Definition at line 30 of file CompilerFeatureRequiredAttribute.cs.

◆ RequiredMembers

const string System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.RequiredMembers = nameof(RequiredMembers)
static

The FeatureName used for the required members C# feature.

Definition at line 35 of file CompilerFeatureRequiredAttribute.cs.

Property Documentation

◆ FeatureName

string System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.FeatureName
get

The name of the compiler feature.

Definition at line 20 of file CompilerFeatureRequiredAttribute.cs.

20{ get; }

◆ IsOptional

bool System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.IsOptional
get

If true, the compiler can choose to allow access to the location where this attribute is applied if it does not understand FeatureName.

Definition at line 25 of file CompilerFeatureRequiredAttribute.cs.

25{ get; init; }

The documentation for this class was generated from the following file: