Beispiel #1
0
        private static int Main()
        {
            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);
        }
Beispiel #2
0
        private static int Main()
        {
            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;
        }
Beispiel #3
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());
 }
Beispiel #4
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());
        }
Beispiel #5
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));
 }
Beispiel #6
0
 public void _DoSomething(VT vt1, ref VT vt2)
 {
     Console.WriteLine("ISomething::DoSomething - " + vt1.ToString() + " " + vt2.ToString());
     Console.WriteLine("this is {" + ToString() + "}");
 }
Beispiel #7
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);
 }
Beispiel #8
0
 public void _DoSomething(VT vt1, ref VT vt2)
 {
     Console.WriteLine("ISomething::DoSomething - " + vt1.ToString() + " " + vt2.ToString());
     Console.WriteLine("this is {" + ToString() + "}");
 }