diff --git a/docs/core/whats-new/dotnet-9/runtime.md b/docs/core/whats-new/dotnet-9/runtime.md index 0f3013839c87b..3d41240d4f8ed 100644 --- a/docs/core/whats-new/dotnet-9/runtime.md +++ b/docs/core/whats-new/dotnet-9/runtime.md @@ -22,7 +22,7 @@ Two new attributes make it possible to define [feature switches](https://github. public class Feature { [FeatureSwitchDefinition("Feature.IsSupported")] - 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; internal static void Implementation() => ...; }