What are these empty double brackets doing in this expression?
record MyRecord(int i, int? j);
public void MyMethod()
{
MyRecord myVar = new(10);
if (myVar is { i: { } })
{
// ?
}
if (myVar is { j: { } })
{
// ?
}
}
I didn't find in the reference pages.
Is this just another way of checking against null
?