示例#1
0
        // returns 999
        static int Main(string[] args)
        {
            foo f = new foo();

            f.SetCount(1000);
            return(f.GetCount());
        }
示例#2
0
        // returns 1234
        static int Main(string[] args)
        {
            foo f = new foo();

            f.z = 1234;
            return(f.z);
        }
示例#3
0
        // returns 684870
        static int Main(string[] args)
        {
            foo f = new foo();

            f.z = 1234;
            foo f2 = new foo();

            f2.z = 555;
            return(f.z * f2.z);
        }
示例#4
0
文件: class5.cs 项目: martydill/PyCIL
        // returns 9999
        static int Main(string[] args)
        {
            bar b = new bar();
             foo f = new foo();
             b.f = f;

             if(b.f == f)
            return 9999;
             else
            return -1;
        }
示例#5
0
文件: class3.cs 项目: martydill/PyCIL
        // returns 45
        static int Main(string[] args)
        {
            int counter = 0;
             for (int i = 0; i < 10; ++i)
             {
            foo f = new foo();
            f.z = i;
            counter += f.z;
             }

             return counter;
        }
示例#6
0
        // returns 45
        static int Main(string[] args)
        {
            int counter = 0;

            for (int i = 0; i < 10; ++i)
            {
                foo f = new foo();
                f.z      = i;
                counter += f.z;
            }

            return(counter);
        }
示例#7
0
文件: class5.cs 项目: memsom/PyCIL
        // returns 9999
        static int Main(string[] args)
        {
            bar b = new bar();
            foo f = new foo();

            b.f = f;

            if (b.f == f)
            {
                return(9999);
            }
            else
            {
                return(-1);
            }
        }
示例#8
0
文件: class.cs 项目: martydill/PyCIL
 // returns 1234
 static int Main(string[] args)
 {
     foo f = new foo();
     f.z = 1234;
     return f.z;
 }
示例#9
0
文件: class7.cs 项目: martydill/PyCIL
 // returns 999
 static int Main(string[] args)
 {
     foo f = new foo();
     f.SetCount(1000);
     return f.GetCount();
 }
示例#10
0
 public bar()
 {
     m_foo       = new foo();
     m_foo.value = 42;
 }