From 9259c4cc8f66f49a940778982c305473dc0dadae Mon Sep 17 00:00:00 2001 From: James Groom Date: Fri, 8 Jul 2022 03:46:21 +1000 Subject: [PATCH] Updated Available C# and .NET features (markdown) --- Available-C#-and-.NET-features.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Available-C#-and-.NET-features.md b/Available-C#-and-.NET-features.md index 2112c11..3807a0d 100644 --- a/Available-C#-and-.NET-features.md +++ b/Available-C#-and-.NET-features.md @@ -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) [`stackalloc`](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/stackalloc) with array intialiser | ✔️ | ✔️ | encouraged ^ 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 [`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` | ---