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