using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MemoryTest1 { struct S1 { public int x; public int y; } class C1 { public int x; public int y; } class Program { static void increment(S1 s) { s.x++; s.y++; } static void increment(C1 c) { c.x++; c.y++; } static void Main(string[] args) { S1 struct1 = new S1(); C1 class1 = new C1(); increment(struct1); increment(class1); // Examine struct1, class1 in watch } } }