yes very close i understand how gc move things around. therefore i will 'index' the objects using some GUID.
can i box and unbox a reference so i change it in another class ... sort of like how u can do the same for basic types?
i want to do this so that the relinking of the references is dont by my core system..
----- Niki Estner wrote: ----
Did I get you right: In "C-speech", you want to store a pointer to an objec
in a file, reload it later so it points to the same object again
That won't work in managed code because the GC will move your object aroun
in memory, so your "pointer" will point to the wrong location
You could however store references to all "serialized objects" in a list
and save the indices into that list in your file. That should be possibl
using custom serilization
Nik
"tham" <an*******@discussions.microsoft.com> wrote i
news:2B**********************************@microsof t.com..
hi Is a reference a special type in C#. For example when i d
MyClass aRef
what are the classes that are available that i can use to probe aRef as
reference. My real goal is to make a serializable reference and to recreat
the link during deserialization. Thank