摘要:
Consider a type that will print out a message when it’s finalized, and that has a Dispose method which will suppress finalization:class DisplayOnFinalize : IDisposable { public void Dispose() { GC.SuppressFinalize(this); } ~DisplayOnFinalize() { Console.WriteLine(“Finalized”); } }Now consider a si.. 阅读全文
posted @ 2014-03-06 10:36
铁啪唧煎鸡蛋
阅读(212)
评论(0)
推荐(0)