I want to do have the following functionality:
var item0 = new Item();
var item1 = item0;
item0 = null;
Console.WriteLine(item1 == null); // true
So I'd be overwriting the memory that item0 and item1 point to. I figured maybe I could do this with pointers..? However, when I tried declaring an item pointer:
Item* itemPointer;
i got an error. Any ideas?