IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
CompilerFeatureRequiredAttribute.cs
Go to the documentation of this file.
1// Licensed to the .NET Foundation under one or more agreements.
2// The .NET Foundation licenses this file to you under the MIT license.
3
5{
9 [AttributeUsage(AttributeTargets.All, AllowMultiple = true, Inherited = false)]
10 public sealed class CompilerFeatureRequiredAttribute : Attribute
11 {
12 public CompilerFeatureRequiredAttribute(string featureName)
13 {
14 FeatureName = featureName;
15 }
16
20 public string FeatureName { get; }
21
25 public bool IsOptional { get; init; }
26
30 public const string RefStructs = nameof(RefStructs);
31
35 public const string RequiredMembers = nameof(RequiredMembers);
36 }
37}
Indicates that compiler support for a particular feature is required for the location where this attr...
const string RefStructs
The FeatureName used for the ref structs C# feature.
bool IsOptional
If true, the compiler can choose to allow access to the location where this attribute is applied if i...
const string RequiredMembers
The FeatureName used for the required members C# feature.