N
Nenad Dobrilovic
Hi,
I have two references to the same string, like this:
string s1 = "One";
string s2 = s1;
s1 = "Two"; <--- s2 is still referencing to "One"
Now, I want that when I change the value of one variable (s1), the other
one (s2) is changed also. Can string behave like all other reference types?
Can it be done?
Thanx,
Cheya
I have two references to the same string, like this:
string s1 = "One";
string s2 = s1;
s1 = "Two"; <--- s2 is still referencing to "One"
Now, I want that when I change the value of one variable (s1), the other
one (s2) is changed also. Can string behave like all other reference types?
Can it be done?
Thanx,
Cheya