Updated Available C# and .NET features (markdown)

YoshiRulz 2024-11-20 04:41:51 +10:00
parent e512df3fa5
commit 2d6cf2eb56
1 changed files with 3 additions and 3 deletions

@ -25,13 +25,13 @@ Feature | 🔵 `net48` | 🟢 `ns2.0` | convention for main BizHawk solution
--:|:-:|:-:|:--
[prop backing field as `field`](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/field) | ✔️ | ✔️ | waiting for .NET 10 LTS
^ C# 14 ^ | 🔵 `net48` | 🟢 `ns2.0` | ---
[`partial` props/indexers](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/partial-member) | ✔️ | ✔️️ | waiting for .NET 10 LTS
[`partial`](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/partial-member) props/indexers | ✔️ | ✔️️ | waiting for .NET 10 LTS
[`allows ref struct` constraint](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/generics/constraints-on-type-parameters#allows-ref-struct) | ❌ | ❌ | unsupported
[interfaces for `ref struct`s](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/ref-struct#restrictions-for-ref-struct-types-that-implement-an-interface) | ✔️ | ✔️️ | discouraged (very useless)
[`ref struct`s and `unsafe` in state-machine methods](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-13#ref-and-unsafe-in-iterators-and-async-methods) | ? | ? | unsupported
[an escape for ESC](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/strings/#string-escape-sequences) | ✔️ | ✔️️ | waiting for .NET 10 LTS
[`lock ((Lock) l)` sugar](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/statements/lock) | ⭕ | ⭕ | should be able to use polyfill w/ C# 12
[enhanced `params`](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/method-parameters#params-modifier) | ✔️ | ✔ | waiting for .NET 10 LTS
sugar for [`lock`](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/statements/lock) with `Lock` | ⭕ | ⭕ | should be able to use polyfill w/ C# 12
enhanced [`params`](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/method-parameters#params-modifier) | ✔️ | ✔️ | waiting for .NET 10 LTS
^ C# 13 ^ | 🔵 `net48` | 🟢 `ns2.0` | ---
[`[UnsafeAccessor]`](https://learn.microsoft.com/en-us/dotnet/api/system.runtime.compilerservices.unsafeaccessorattribute) | ❌ | ❌ | unsupported
[`[InlineArray]`](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/struct#inline-arrays) | ❌ | ❌ | unsupported