Open wcoder opened 3 years ago
https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-9
new
if (e is not null) { // ... }
or
if (e != null) { // ... }
t is not > 4 or not < 10 and not 0 and 0
var a = CreateA(); // ... public A CreateA() { // ... return new() // <-- here { Str = "some text" }; }
public A CreateA() { // ... return new A // <-- here { Str = "some text" }; }
StringBuilder sb = new();
var sb = new StringBuilder();
TODO...
https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-9
Pattern matching enhancements
new
or
t is not > 4 or not < 10 and not 0 and 0
Fit and finish features
new
or
new
or
TODO...