コード例 #1
0
        public static int TestEntryPoint()
        {
            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);
        }
コード例 #2
0
 private VT sub(VT what)
 {
     _m_n -= what._m_n; return(this);
 }                                                             //this will be implemented via NEG+JMP in IL
コード例 #3
0
 private VT add(VT what)
 {
     _m_n += what._m_n; return(this);
 }