Is there a shorthand for this:
bool b = (x > 0) && (x < 5);
Something like:
bool b = 0 < x < 5;
In C#?
Latest C# Allow this pattern:
var counter = Random.Shared.Next(0,5); if (counter is > 0 and < 5) { //Do logic }