Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Dixin
Copy link
Owner

@Dixin Dixin commented Mar 31, 2025

Summary

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

It is particularly 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
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants