classA a = new classA() { data = 5 }; classA b = a; b.data = 10; Console.WriteLine(a.data);
10
struct classA { }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)