C
CKR Rajesh
Hi
Is there any way to simulate a pointer to pointer equivalent in C# using
references and without dwelling into unsafe code?
For ex, I have a class variable.
A var = new A();
which say, is equivalent to C++ code
A * m_p = new A();
I want to have a variable which is equivalent to
A ** m_pp = &m_p;
So at any given point of time, i will know what m_p is currently pointing
to. Is it possible?
Thanks in advance
Raj
Is there any way to simulate a pointer to pointer equivalent in C# using
references and without dwelling into unsafe code?
For ex, I have a class variable.
A var = new A();
which say, is equivalent to C++ code
A * m_p = new A();
I want to have a variable which is equivalent to
A ** m_pp = &m_p;
So at any given point of time, i will know what m_p is currently pointing
to. Is it possible?
Thanks in advance
Raj