private static int Main() { VT vt = new VT(100); VT what = new VT(99); vt = VT.add(vt, what); vt = VT.sub(vt, what); return vt._m_n; }
private static int Main() { VT vt = new VT(100); VT what = new VT(99); vt = VT.add(vt, what); vt = VT.sub(vt, what); return(vt._m_n); }
private VT sub(VT what) { _m_n -= what._m_n; return this; } //this will be implemented via NEG+JMP in IL private static int Main() { VT vt = new VT(100); VT what = new VT(99); vt = vt.add(what); vt = vt.sub(what); if (vt._m_n != 100) return vt._m_n; VT what2 = new VT(96); vt.add(what2); vt.sub(what2); return vt._m_n; }
} //this will be implemented via NEG+JMP in IL private static int Main() { VT vt = new VT(100); VT what = new VT(99); vt = vt.add(what); vt = vt.sub(what); if (vt._m_n != 100) { return(vt._m_n); } VT what2 = new VT(96); vt.add(what2); vt.sub(what2); return(vt._m_n); }
private static VT sub(VT me, VT what) { me._m_n -= what._m_n; return me; }
private static VT add(VT me, VT what) { me._m_n += what._m_n; return me; }
private static VT sub(VT me, VT what) { me._m_n -= what._m_n; return(me); }
private static VT add(VT me, VT what) { me._m_n += what._m_n; return(me); }
private static void Test(VT arg1, ref VT arg2) { arg2._v = 100; arg1._v = 10; }
private VT sub(VT what) { _m_n -= what._m_n; return(this); } //this will be implemented via NEG+JMP in IL
private VT add(VT what) { _m_n += what._m_n; return(this); }
private VT sub(VT what) { _m_n -= what._m_n; return this; } //this will be implemented via NEG+JMP in IL
private VT add(VT what) { _m_n += what._m_n; return this; }