Hello is there any way formulate a condition like the one below ? If field is null then false else field.Property ?
class Node
{
public bool IsFilled;
}
class Holder
{
Node nodeBuffer;
public bool IsFilled => this.nodeBuffer?.IsFilled ?? false;
}
How can i say something like if nodeBuffer is null then false else nodeBuffer.IsFilled
?