Ejemplo n.º 1
0
 public static Testobj KKK(Testobj testobj, double v2)
 {
     testobj.y += v2;
     return(new Testobj()
     {
         x = testobj.x, y = testobj.y
     });
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 3
0
 public static int DOTest(this Testobj obj, int a, int b)
 {
     return(a + b);
 }
Ejemplo n.º 4
0
 public innerClass(Testobj testobj)
 {
     this.testobj = testobj;
 }