Skip to content

Conversation

Dixin
Copy link
Contributor

@Dixin Dixin commented Mar 31, 2025

Summary

Preprocessor symbol NET9_0_OR_GREATER is missing in the document C# preprocessor directives.

It is useful since .NET 9.0 has new features. For example:

#if NET9_0_OR_GREATER
global using Lock = System.Threading.Lock;
#else
global using Lock = System.Object;
#endif

…bols.md

`NET9_0_OR_GREATER` is missing in preprocessor-symbols.md.

It is particularly useful for .NET 9.0 new features. For example:

```cs
#if NET9_0_OR_GREATER
global using Lock = System.Threading.Lock;
#else
global using Lock = System.Object;
#endif
```
@Dixin Dixin requested a review from a team as a code owner March 31, 2025 01:41
@dotnetrepoman dotnetrepoman bot added this to the March 2025 milestone Mar 31, 2025
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates PR is created by someone from the .NET community. label Mar 31, 2025
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Dixin

This LGTM, and I'll :shipit: now.

@BillWagner BillWagner enabled auto-merge (squash) March 31, 2025 14:58
Copy link
Contributor

@gewarren gewarren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks @Dixin

@BillWagner BillWagner merged commit c961d28 into dotnet:main Mar 31, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-contribution Indicates PR is created by someone from the .NET community.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants