idisposable
Detecting "leaked" IDisposable objects
There are many questions SO asking how to detect IDisposable objects leak. It seems like the answer is \"you can\'t\".[详细]
2023-02-05 06:39 分类:问答ASP.NET: Large memory leak.. Where is it? DB? Updatepanels? No disposables?
I have been developing a quite large application, and I uploaded it to my server some days ago. Now I have found out it has several memory leaks - Uh oh.[详细]
2023-02-04 13:20 分类:问答Cast type to IDisposable - Why?
Saw this. Why the explicit cast to IDisposable? Is this just a shorthand to ensure that IDisposable is called on exiting the using block?[详细]
2023-02-04 02:31 分类:问答Consequences of NOT properly implementing IDisposable
I am comfortable with how to implement 开发者_开发问答IDisposable.. However I\'m not clear as to the exact consequences of not implementing this properly. Is it a case that unmanaged resources will n[详细]
2023-02-03 04:57 分类:问答.net: Should our custom Data Access Layer classes implement Idisposable?
.net: Should our开发者_运维知识库 custom Data Access Layer classes implement Idisposable? They use mainly a Database as a Data Store for storing/retrieving data?[详细]
2023-02-02 05:39 分类:问答Object disposal with dependency injection
I have created a repository class that I want to use in a code behind page. I\'m using constructor injection in the code behind page to instantiate the repository.[详细]
2023-02-01 23:20 分类:问答How to deal with a class than encapsulates a disposible instance?
interface IMyInterace { void Open(); object Read(); void Close(); } class MyImplementation : IMyInterface { public void Open() { /* instantiates disposible class */ }[详细]
2023-02-01 16:18 分类:问答Disposing of Constructor Injected object
Lets say I have a class that associates itself with another class.It would look s开发者_开发问答omething like the following:[详细]
2023-02-01 11:59 分类:问答Dispose not being called
I have seen a few posts on here on ways to get an object disposed when it goes out of scope, but nothing I have tried seems to work.[详细]
2023-01-31 19:52 分类:问答Is there a visual studio addon that warns if code is violating the IDisposable pattern?
I was wondering if there was an addon that could detect and create a warning (or error) if it detects the creation of an IDisposable object that is never disposed.[详细]
2023-01-31 04:08 分类:问答