예제 #1
0
 public static Testobj KKK(Testobj testobj, double v2)
 {
     testobj.y += v2;
     return(new Testobj()
     {
         x = testobj.x, y = testobj.y
     });
 }
예제 #2
0
 /// <summary>
 /// 创建Testobj数组
 /// </summary>
 /// <param name="count">要创建的个数</param>
 /// <returns>Testobj[]数组</returns>
 public static Testobj[] make(int count)
 {
     Testobj[] r = new Testobj[count];
     for (int i = 0; i < count; i++)
     {
         r[i] = new Testobj((uint)i);
     }
     return(r);
 }
예제 #3
0
 public static int DOTest(this Testobj obj, int a, int b)
 {
     return(a + b);
 }
예제 #4
0
 public innerClass(Testobj testobj)
 {
     this.testobj = testobj;
 }