//
#pragma warning disable
#nullable enable annotations
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.Runtime.CompilerServices
{
///
/// Indicates that compiler support for a particular feature is required for the location where this attribute is applied.
///
[global::System.AttributeUsage(global::System.AttributeTargets.All, AllowMultiple = true, Inherited = false)]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public sealed class CompilerFeatureRequiredAttribute : global::System.Attribute
{
///
/// Creates a new instance of the type.
///
/// The name of the feature to indicate.
public CompilerFeatureRequiredAttribute(string featureName)
{
FeatureName = featureName;
}
///
/// The name of the compiler feature.
///
public string FeatureName { get; }
///
/// If true, the compiler can choose to allow access to the location where this attribute is applied if it does not understand .
///
public bool IsOptional { get; set; }
///
/// The used for the ref structs C# feature.
///
public const string RefStructs = nameof(RefStructs);
///
/// The used for the required members C# feature.
///
public const string RequiredMembers = nameof(RequiredMembers);
}
}