FeatureGuardAttribute
Indicates that the specified public static boolean get-only property
guards access to the specified feature.
using System.Runtime.CompilerServices;
namespace System.Diagnostics.CodeAnalysis
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
[AttributeUsage(AttributeTargets.Property, Inherited = false, AllowMultiple = true)]
internal sealed class FeatureGuardAttribute : Attribute
{
public Type FeatureType { get; }
public FeatureGuardAttribute(Type featureType)
{
FeatureType = featureType;
}
}
}