// a struct is a value type: assignment makes a copy var a = new Point { X = 1 }; var b = a; b.X = 99; Console.WriteLine(a.X); struct Point { public int X; }
assignment copies the whole value