i'm looking for a .net friendly to the equivalent c++
(IntPtr)gchandle.alloc(f) does not work. i need a consistent address for each instance; evidently this does not work (though it used to and now i have code written around this faulty paradigm)Code:Foo* f; unsigned int faddress = (unsigned int)f;