using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MemoryTest3 { class C1 { public int x; public int y; } struct S1 { public C1 A; public C1 B; } class Program { static void increment(S1 structArg) { structArg.A.x++; } static void Main(string[] args) { S1 struct1 = new S1(); struct1.A = new C1(); struct1.B = new C1(); // Examine struct1 in watch, pay attention to addresses increment(struct1); // Examine values of struct1 in watch. } } }