static void TestPropertyInit() { PropertyInit a = new PropertyInit(); a.A = 1; a.B = 2; a.C = 3; PropertyInit b = new PropertyInit(a) { C = 100 }; Console.WriteLine($"b.A={b.A},b.B={b.B},b.C={b.C}"); }
public PropertyInit(PropertyInit Tp) { this.A = Tp.A; this.B = Tp.B; }