Open wcoder opened 4 years ago
@wcoder, I think we allow using all the features by default or you mean something else?
I mean these topics:
formatting
return o switch
{
Point p when p.X == 0 && p.Y == 0 => "origin",
Point p => $"({p.X}, {p.Y})",
_ => "unknown"
};
(int x, int y) = GetPoint();
or
var (x, y) = GetPoint();
using var reader = new StringReader(...);
// ...
or
using (var reader = new StringReader(...))
{
// ...
}
Can be a lot of discussion about using Nullable reference types
...
I can add that in our back-end team 2 out of 3 developers prefer to avoid new using
declaration syntax. So it makes sense to add a new rule for this.
https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-8