Skip to content

Instantly share code, notes, and snippets.

@henrik-ch
Created March 28, 2011 21:25
Show Gist options
  • Save henrik-ch/891315 to your computer and use it in GitHub Desktop.
Save henrik-ch/891315 to your computer and use it in GitHub Desktop.
StringTest
[Test]
public void StringFormat6() {
string x = "hello";
string y = "jello".Replace("j", "h");
Assert.AreNotSame(x, y);
string z = string.Intern(y);
Assert.AreSame(x, z);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment