You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Changed
The C# rules now cover C# 15 and .NET 11: keep LangVersion at latest, put new .NET 11 runtime APIs in multi-targeted libraries behind #if NET11_0_OR_GREATER with a .NET 10 fallback, use collection expression arguments ([with(capacity: n), .. items]) and labeled break/continue, and keep IDE style rules at suggestion severity.
The C# rules now say not to adopt union types, runtime-async or the memory-safety preview, and not to add closed to existing public types.
The C# code-quality rules now prefer a sealed record hierarchy with an exhaustive switch for a closed set of outcomes, with closed allowed only on new types in .NET 11 code.