Ejemplo n.º 1
0
 private static int Main()
 {
     Struct1 str1 = new Struct1();
     TypedReference _ref = __makeref(str1);
     str1 = __refvalue(_ref, Struct1);
     str1.Verify();
     _ref = __makeref(str1.m_str2);
     Struct1.Struct2 str2 = __refvalue(_ref, Struct1.Struct2);
     str2.Verify();
     return 100;
 }
Ejemplo n.º 2
0
        private static int Main()
        {
            Struct1        str1 = new Struct1();
            TypedReference _ref = __makeref(str1);

            str1 = __refvalue(_ref, Struct1);
            str1.Verify();
            _ref = __makeref(str1.m_str2);
            Struct1.Struct2 str2 = __refvalue(_ref, Struct1.Struct2);
            str2.Verify();
            return(100);
        }