I have a struct that (for the purposes of this question) pretty much mimics the built in Point
type.
I need to check that it has been instantiated before using it. When it was Point
, I could do this:
if (this.p == null)
But that now generates the following error:
Operator '==' cannot be applied to operands of type 'ProportionPoint' and '<null>'
How can I compare my struct against null? Is there another way to check for instantiation?