示例#1
0
        public void Test()
        {
            var structObj = new StructCoordinate(0, 0);
            var classObj  = new ClassCoordinate(0, 0);

            ModifyStruct(structObj);
            ModifyClass(classObj);
        }
示例#2
0
 public static void ModifyStruct(StructCoordinate c)
 {
     c.x += 1;
     c.y += 1;
 }