Exemplo n.º 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;
     }
 }
Exemplo n.º 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);
            }
        }
Exemplo n.º 3
0
 private StressTest()
 {
     _m_internal          = new StressTest2();
     _m_internal.m_parent = this;
 }
Exemplo n.º 4
0
 private StressTest()
 {
     _m_internal = new StressTest2();
     _m_internal.m_parent = this;
 }