<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="11.0.0-preview.1.26104.118" />

System.Diagnostics.CodeAnalysis.FeatureSwitchDefinitionAttribute

Indicates that the specified public static boolean get-only property corresponds to the feature switch specified by name.
public string SwitchName { get; }

The name of the feature switch that provides the value for the specified property.

public FeatureSwitchDefinitionAttribute(string switchName)

Initializes a new instance of the FeatureSwitchDefinitionAttribute class with the specified feature switch name.