I noticed that ReSharper suggests the following syntax in C# code. Old:
if (wizardStep !=null && wizardStep.progressId > 0)
New:
if (wizardStep is {progressId: > 0})
It works well, and I like it - looks cleaner than original. But for the life of me, I can't find any documentation about this syntax. What is possible, what are limitations, etc. And googling for is is not very helpful. Microsoft C# documentation doesn't mention anything of the kind!
I realize, this question stretches SO rules a little, I am not asking for an opinion. Maybe proof that this code is legal.
UPDATE: Don't know who closed this question - but it has nothing in common with the one that it is linked to! This is about Relational Pattern in C# 9; that one about is
syntax in C# 8.