why don't string object refs behave like other object refs?
Posted
by DayOne
on Stack Overflow
See other posts from Stack Overflow
or by DayOne
Published on 2010-05-10T16:52:16Z
Indexed on
2010/05/10
17:04 UTC
Read the original article
Hit count: 180
c#
string a = "a";
string b = a;
string a = "c"
Why does string b still have the value "a" and not "c"?
As string is an object and not a stack value type, what's with this behaviour?
Thanks
© Stack Overflow or respective owner