阅读背景:

我需要处理瞬间一次性物品吗?

来源:互联网 

I have a class that creates several IDisposable objects, all of these objects are then passed to another 'manager' class in a 3rd party library. As I need some of the objects in later calls I kept a local field reference to the created objects so that I could access them at a later time. When I ran FxCop on the class it said that I should implement IDisposable, due to the disposable objects that I kept a reference to. My questions are:I have a class that creates several IDisposable




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

分享到: