using System;
public class Program
{
public static void Main()
string x = "x";
string y = new string(new char[] { 'x' });
// Just to prove they're not referring to the same object.
Console.WriteLine(ReferenceEquals(x, y));
Console.WriteLine(x == y);
}