public static int Main() { var m = new MyUInt32(2); m = test1(m); if (m.x != 3) { return(1); } m = new MyUInt32(2); m = test2(m); if (m.x != 3) { return(2); } m = new MyUInt32(3); m = test3(m); if (m.x != 4) { return(3); } return(0); }
public static int Main () { var m = new MyUInt32 (2); m = test1 (m); if (m.x != 3) return 1; m = new MyUInt32 (2); m = test2 (m); if (m.x != 3) return 2; m = new MyUInt32 (3); m = test3 (m); if (m.x != 4) return 3; return 0; }
static MyUInt32 test3(MyUInt32 x) { ++x; return(x); }
static MyUInt32 test2(MyUInt32 x) { x++; return(x); }
static MyUInt32 test1(MyUInt32 x) { x = x + 1; return(x); }
public Task <uint> SubUIntTask(MyUInt32 data) { return(Task.FromResult(data.Data)); }
static MyUInt32 test3 (MyUInt32 x) { ++x; return x; }
static MyUInt32 test2 (MyUInt32 x) { x++; return x; }
static MyUInt32 test1 (MyUInt32 x) { x = x + 1; return x; }