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