Пример #1
0
        public static int Main()
        {
            bar b = new bar();

            b.getFoo().value = 37;
            return(0);
        }
Пример #2
0
        // returns 4444
        static int Main(string[] args)
        {
            bar b = new bar();
             b.f = new foo();

             b.f.count = 4444;

             return b.f.count;
        }
Пример #3
0
        // returns 4444
        static int Main(string[] args)
        {
            bar b = new bar();

            b.f = new foo();

            b.f.count = 4444;

            return(b.f.count);
        }
Пример #4
0
        // 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
        // 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);
            }
        }