Is it possile to store a reference to an object in a class, so that if the referenced object is changed in by the class, the object is changed everywhere. This could easily be done with a pointer, but they are a bit dirty i c#.
Here is an example of what I mean:
C# |
I know this won't work, but maybe you can se what I'm trying to do. I want the reference to a stored in b for later mnipulation. Can this be done elegantly perhaps?

Gomathi PalaniswamyRank #714 · 3.3K reputationPosted Sep 21, 2010, 2:58 AM EDT
In c# use your pointer coding with in unsafe.I think the below coding will be helpful for your reference,
http://www.c-sharpcorner.com/UploadFile/rajeshvs/PointersInCSharp11112005051624AM/PointersInCSharp.aspx
With Regards,
Gomathi.P
Sam HobbsRank #107 · 20.5K reputationPosted Sep 21, 2010, 5:44 PM EDT