I cannot find it anywhere. Could you tell me what the expression { } means in c# or give me a link to documentation.
Here is example usage which I have found in my project:
Method(IProfileDocument profileDocument)
{
if(profileDocument.documentId is not { } documentId
|| string.IsNullOrEmpty(documentId))
{
do something...
}
}
{ }
when used with is
is an empty property pattern.
{ }
is basically equivalent to != null