IDisposable with managed code
- From: "Mark" <markfield88@xxxxxxxxxxxxx>
- Date: Thu, 18 Jan 2007 13:45:31 -0600
If your class implements IDisposable, I was told that this increases the
speed with which your class is garbage collected. Is this true? And if so,
how much "time" does it save? Assume that we are dealing with 100% managed
code and that the clean-up is of big inmemory data structures.
Thanks in advance.
Mark
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
protected virtual void Dispose(bool disposing)
{
if (disposing)
{
if (this.BigData != null)
{
this.BigData.Dispose();
}
}
}
.
- Follow-Ups:
- Re: IDisposable with managed code
- From: Bruce Wood
- Re: IDisposable with managed code
- Prev by Date: Re: System.Timer!
- Next by Date: Re: IDisposable with managed code
- Previous by thread: Looking to make something like a delegate...
- Next by thread: Re: IDisposable with managed code
- Index(es):
Relevant Pages
|