在C#中配置析构函数 [英] dispose distructor in C#
本文介绍了在C#中配置析构函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在c#plz中使用dispose析构函数,让我知道如何使用它???
解决方案
尝试
实现敲定并处理清理非托管资源 [ ^ ]
CP关于此主题的一些文章:
正确实施IDisposable和处置模式 [ IDisposable:您的母亲从未告诉过您有关资源分配的信息 [
—SA
i want to use dispose destructor in c# plz let me know how to use it??
解决方案
Try
Implementing Finalize and Dispose to Clean Up Unmanaged Resources[^]
CP has some articles on this subject:
Implementing IDisposable and the Dispose Pattern Properly[^]
IDisposable: What Your Mother Never Told You About Resource Deallocation[^]
Just to give a summary of other answers: "Dispose destructor" exists only in your imagination.
—SA
这篇关于在C#中配置析构函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文