Updated Available C# and .NET features (markdown)

James Groom 2024-06-23 23:45:24 +10:00
parent 2f802a7d64
commit 62751ee138
1 changed files with 1 additions and 1 deletions

@ -24,7 +24,7 @@ Feature | 🔵 `net48` | 🟢 `ns2.0` | convention for main BizHawk solution
--:|:-:|:-:|:-- --:|:-:|:-:|:--
[`[InlineArray]`](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/struct#inline-arrays) | ❌ | ❌ | unsupported [`[InlineArray]`](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/struct#inline-arrays) | ❌ | ❌ | unsupported
[`using` aliases](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/using-directive#using-alias) for tuples, etc. | ✔️ | ✔️ | disallowed (use a struct instead of a tuple alias and we'll consider replacing them with `<Using/>` later) [`using` aliases](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/using-directive#using-alias) for tuples, etc. | ✔️ | ✔️ | disallowed (use a struct instead of a tuple alias and we'll consider replacing them with `<Using/>` later)
[default arguments for lambdas](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/lambda-expressions#input-parameters-of-a-lambda-expression) | ✔️ | ✔️ | encouraged [default arguments for lambdas](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/lambda-expressions#input-parameters-of-a-lambda-expression) | ✔️ | ✔️ | discouraged (you should be using local methods)
[`ref readonly` parameters](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/method-parameters#ref-readonly-modifier) | ✔️ | ✔️ | allowed [`ref readonly` parameters](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/method-parameters#ref-readonly-modifier) | ✔️ | ✔️ | allowed
[unified `Span`/`Array`/`List` init syntax](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/collection-expressions) | ✔️ | ✔️ | encouraged [unified `Span`/`Array`/`List` init syntax](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/collection-expressions) | ✔️ | ✔️ | encouraged
[primary constructors](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/instance-constructors#primary-constructors) on non-`record`s | ✔️ | ✔️ | encouraged [primary constructors](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/instance-constructors#primary-constructors) on non-`record`s | ✔️ | ✔️ | encouraged