public void T01_TestDispose() { { Foo f = new Foo(); f = null; } for (int x = 0; x < 1000; x++) { GC.Collect(0); Thread.Sleep(5); } }