示例#1
0
 private static bool Scenario1()
 {
     StressTest2 S = new StressTest2();
     TypedReference R = __makeref(S);
     S = null;
     GC.Collect();
     try
     {
         string str = __refvalue(R, StressTest2).m_helloStr;
         return false;
     }
     catch (NullReferenceException)
     {
         return true;
     }
 }
示例#2
0
        private static bool Scenario1()
        {
            StressTest2    S = new StressTest2();
            TypedReference R = __makeref(S);

            S = null;
            GC.Collect();
            try
            {
                string str = __refvalue(R, StressTest2).m_helloStr;
                return(false);
            }
            catch (NullReferenceException)
            {
                return(true);
            }
        }
示例#3
0
 private StressTest()
 {
     _m_internal          = new StressTest2();
     _m_internal.m_parent = this;
 }
示例#4
0
 private StressTest()
 {
     _m_internal = new StressTest2();
     _m_internal.m_parent = this;
 }