L
Lubomir
Hi,
I want to store string members in a generic list. When I assign to the
member of a list a new value, I would like it would be reflected in the
collection also:
string firstString= "first";
myList.Add(firstString);
firstString="second";
string test = myList[0];
I wanted the test would have the value "second".
Of course this is not true because strings are immutable. Is there any
clever way how to achieve this effect?
Thanks,
Lubomir
I want to store string members in a generic list. When I assign to the
member of a list a new value, I would like it would be reflected in the
collection also:
string firstString= "first";
myList.Add(firstString);
firstString="second";
string test = myList[0];
I wanted the test would have the value "second".
Of course this is not true because strings are immutable. Is there any
clever way how to achieve this effect?
Thanks,
Lubomir