public static void Main() {
String s2 = new StringBuilder().Append("My").Append("Test").ToString();
String str=new String('h',3);
String str1=new StringBuilder().Append("My").Append("name").ToString();
String s11 = "String" + s1;
String s12 = "String" + s1;
String bunny=new String('y',12);
Console.WriteLine(String.IsNullOrEmpty(String.IsInterned(str))?"no":"yes");
Console.WriteLine(String.IsNullOrEmpty(String.IsInterned(str1))?"no":"yes");
Console.WriteLine(String.IsNullOrEmpty(String.IsInterned(singles))?"no":"yes");
Console.WriteLine(String.IsNullOrEmpty(String.IsInterned(bunny))?"no":"yes");
String letter=new String('z',3);
Console.WriteLine(String.IsNullOrEmpty(String.IsInterned(letter))?"no":"yes");
String s3 = String.Intern(s2);
Console.WriteLine("s1 == '{0}'", s1);
Console.WriteLine("s2 == '{0}'", s2);
Console.WriteLine("s3 == '{0}'", s3);
Console.WriteLine(String.IsInterned(s1));
Console.WriteLine(String.IsInterned(s2));
Console.WriteLine(String.IsInterned(s3));
Console.WriteLine("Is s2 the same reference as s1?: {0}", (Object)s2==(Object)s1);
Console.WriteLine("Is s3 the same reference as s1?: {0}", (Object)s3==(Object)s1);
bool interned = String.IsInterned(letter) != null;
Console.WriteLine(" is in the string intern pool."
Console.WriteLine(" is not in the string intern pool."