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