Is it possible to make custom classes nullable?

I’m rather fond of setting things to null to signify that they’re empty, and checking if myreference != null in order to see if it’s valid.

I can’t seem to do this with custom classes i’ve created though, attempting to set a reference of a custom class to null, returns an error.

for now, i’ve been using a workaround of setting some specific property to null, and checking if that value is null or not. but this feels kinda hacky.

Is there any way to null my own classes?

All reference types (including all classes) by definition are nullable types.

Share some code?

Should be fine if its a straight up class (no inheritance)