I have some confusion about string a reference type or value type, I have two variables of type string, I assign value to first variable and then assigned same variable to second variable, If i change anything on first variable value doesn't get change in second variable, as second variable is also pointing to the same location where first one does?
string string1 = "abc";
string string2 = string1;
string1 = "xyz";
here string1 is holding value xyz and string2 is abc