public void Test() { var structObj = new StructCoordinate(0, 0); var classObj = new ClassCoordinate(0, 0); ModifyStruct(structObj); ModifyClass(classObj); }
public static void ModifyStruct(StructCoordinate c) { c.x += 1; c.y += 1; }