there are 2 examples of code: # 1
string str1 = \"hello\"; string str2 = str1; //reference to the same string str1 = \"bye\"; //new string created
Not directly in answer to your question, but in case you are looking to actually clone a string, you can use the static string.Copy() method.
string.Copy()