public string MyProperty { get; set; }
public static void Main()
MyClass myInstance1 = new MyClass();
myInstance1.MyProperty = "abcdef";
MyClass myInstance2 = new MyClass { MyProperty = "abcdef" };
MyClass myInstance3 = myInstance1;
Console.WriteLine("myInstance1.MyProperty is {0}", myInstance1.MyProperty);
Console.WriteLine("myInstance2.MyProperty is {0}", myInstance2.MyProperty);
Console.WriteLine("myInstance3.MyProperty is {0}", myInstance3.MyProperty);
myInstance1.MyProperty = "vwxyz";
Console.WriteLine("myInstance1.MyProperty is {0}", myInstance1.MyProperty);
Console.WriteLine("myInstance2.MyProperty is {0}", myInstance2.MyProperty);
Console.WriteLine("myInstance3.MyProperty is {0} (Why did this change?)", myInstance3.MyProperty);