Minggu, 06 Februari 2011
If Writing An Object That Is IDisposable, Don’t Fail During Construction
There’s a great pattern for ensuring that unmanaged resources are cleaned up in the .NET world. It’s called the Disposable pattern and it applies to any resource that implements the IDisposable interface. If you are writing an object that directly deals with unmanaged resources, such as files, database connections, network sockets, fonts, etc., then you are well advised to implement IDisposable
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar