I\'m facing this abnormal situation. The following code doesn\'t work properly:
string temp = \"heythere\"; Console.WriteLine(temp); temp
Strings are immutable, they don't change in-place. Try:
string temp = "heythere"; Console.WriteLine(temp); temp = temp.Insert(3, "hello"); Console.WriteLine(temp);
Or, your can try this
string temp = "heythere"; Console.WriteLine(temp.Insert(3, "hello"));