예제 #1
0
 public static PDR.A CallMethodOfStruct_1()
 {
     PDR.A a = new PDR.A();
     a.SetX(123);
     return(a);
 }
예제 #2
0
 private static PDR.A IncrementX(PDR.A a)
 {
     a.SetX(a.GetX() + 100);
     return(a);
 }
예제 #3
0
 public static PDR.A CallMethodOfStruct_2()
 {
     PDR.A a  = new PDR.A();
     PDR.A a1 = IncrementX(a);
     return(a1);
 }
예제 #4
0
 static ClassWithStaticCctor()
 {
     _a2 = new PDR.A(190);
     _classWithOneField2   = new PDR.ClassWithOneField();
     _classWithOneField2.x = 78;
 }