Updated Available C# and .NET features (markdown)
parent
e512df3fa5
commit
2d6cf2eb56
|
@ -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
|
[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` | ---
|
^ 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
|
[`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)
|
[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
|
[`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
|
[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
|
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
|
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` | ---
|
^ C# 13 ^ | 🔵 `net48` | 🟢 `ns2.0` | ---
|
||||||
[`[UnsafeAccessor]`](https://learn.microsoft.com/en-us/dotnet/api/system.runtime.compilerservices.unsafeaccessorattribute) | ❌ | ❌ | unsupported
|
[`[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
|
[`[InlineArray]`](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/struct#inline-arrays) | ❌ | ❌ | unsupported
|
||||||
|
|
Loading…
Reference in New Issue