Updated Available C# and .NET features (markdown)
parent
229b4cfa1a
commit
9259c4cc8f
|
@ -77,6 +77,7 @@ static [local methods](https://docs.microsoft.com/en-us/dotnet/csharp/programmin
|
||||||
`field` [attribute target](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/attributes/#attribute-targets) for auto-prop backing field | ✔️ | ✔️ | discouraged (surely this can only be used for stupid)
|
`field` [attribute target](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/attributes/#attribute-targets) for auto-prop backing field | ✔️ | ✔️ | discouraged (surely this can only be used for stupid)
|
||||||
[`stackalloc`](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/stackalloc) with array intialiser | ✔️ | ✔️ | encouraged
|
[`stackalloc`](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/stackalloc) with array intialiser | ✔️ | ✔️ | encouraged
|
||||||
^ C# 7.3 ^ | 🔵 `net48` | 🟢 `ns2.0` | ---
|
^ C# 7.3 ^ | 🔵 `net48` | 🟢 `ns2.0` | ---
|
||||||
|
[`Span`](https://docs.microsoft.com/en-us/dotnet/standard/memory-and-spans/) and co. | ⭕ | ⭕ | allowed
|
||||||
[`ref struct`](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/struct#ref-struct) (stack-bound) | ✔️ | ✔️ | allowed
|
[`ref struct`](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/struct#ref-struct) (stack-bound) | ✔️ | ✔️ | allowed
|
||||||
[`readonly struct`](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/struct#readonly-struct) and `in` parameters | ✔️ | ✔️ | encouraged
|
[`readonly struct`](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/struct#readonly-struct) and `in` parameters | ✔️ | ✔️ | encouraged
|
||||||
^ C# 7.2 ^ | 🔵 `net48` | 🟢 `ns2.0` | ---
|
^ C# 7.2 ^ | 🔵 `net48` | 🟢 `ns2.0` | ---
|
||||||
|
|
Loading…
Reference in New Issue