Exemplo n.º 1
0
        public static int TestEntryPoint()
        {
            VT vt = new VT(10, "10");

            vt._DoSomething(new VT(0, "-"), ref vt);
            vt = vt._RetSomething(vt);
            Console.WriteLine("Got : " + vt.ToString());
            if (vt._m_vn != 10 || vt._m_vs != "10")
            {
                Console.WriteLine("Failed");
                return(101);
            }

            vt.DoSomething(new VT(0, "-"), ref vt);
            vt = vt.RetSomething(vt);
            Console.WriteLine("Got : " + vt.ToString());
            if (vt._m_vn != 10 || vt._m_vs != "10")
            {
                Console.WriteLine("Failed");
                return(101);
            }

            TryInterface(vt);

            Console.WriteLine("Passed");
            return(100);
        }
Exemplo n.º 2
0
        private static void TryInterface(ISomething smth)
        {
            VT vt = new VT(11, "11");

            smth.DoSomething(new VT(0, "-"), ref vt);
            vt = smth.RetSomething(vt);
            Console.WriteLine("Got : " + vt.ToString());
        }
Exemplo n.º 3
0
 public VT _RetSomething(VT vt)
 {
     Console.WriteLine("ISomething::RetSomething - " + vt.ToString());
     Console.WriteLine("this is {" + ToString() + "}");
     return(new VT(vt._m_vn, vt._m_vs));
 }
Exemplo n.º 4
0
 public void _DoSomething(VT vt1, ref VT vt2)
 {
     Console.WriteLine("ISomething::DoSomething - " + vt1.ToString() + " " + vt2.ToString());
     Console.WriteLine("this is {" + ToString() + "}");
 }