M
Michael Wong
Hi,
I would like to have a string point to another one.
What I mean is I want the pointing to change value whenever the pointed
one is changed. How can I do it?
Example:
string orgString = "Original string";
string ptrString = orgString;
orgString = "New string";
// Now, we have ptrString == "Original string"
// I would instead want this:
// ptrString == "New string"
I would like to have a string point to another one.
What I mean is I want the pointing to change value whenever the pointed
one is changed. How can I do it?
Example:
string orgString = "Original string";
string ptrString = orgString;
orgString = "New string";
// Now, we have ptrString == "Original string"
// I would instead want this:
// ptrString == "New string"