We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f37578 commit 2ea7fbfCopy full SHA for 2ea7fbf
docs/core/whats-new/dotnet-9/runtime.md
@@ -22,7 +22,7 @@ Two new attributes make it possible to define [feature switches](https://github.
22
public class Feature
23
{
24
[FeatureSwitchDefinition("Feature.IsSupported")]
25
- internal static bool IsSupported => AppContext.TryGetSwitch("Feature.IsSupported", out bool isEnabled) ? isEnabled : true;
+ internal static bool IsSupported { get; } = AppContext.TryGetSwitch("Feature.IsSupported", out bool isEnabled) ? isEnabled : true;
26
27
internal static void Implementation() => ...;
28
}
0 commit comments