阅读背景:

处理与Windows桌面应用程序的一次性依赖项

来源:互联网 

We all know that we should dispose of disposable objects once we have finished using them. The question is: If I have a disposable object (eg. a database context) being used throughout the entire lifetime of a windows desktop application (e.g. WPF or WinForms): Should I dispose of that object in the application shutdown event (why, when, when not)? We all know that we should dispose of disposabl




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: