R
rajesh
I am new to .NET programming and OOPS. I am interested in knowing
about Dispose method. They are
+ What are the circumstances under which we should implement the
IDisposable interface.
+ What would I loose if do not implement the IDisposable interface.
+ I am invoking instances of certain custom classes in my class. If I
simply implement the IDisposable interface, then would all these
instances be disposed
automatically killed? Or do I need to set them to nothing explicitly?
If I need to set them to nothing explicitly, then in which method
should I set them to
nothing?
Please help.
regards,
Rajesh
about Dispose method. They are
+ What are the circumstances under which we should implement the
IDisposable interface.
+ What would I loose if do not implement the IDisposable interface.
+ I am invoking instances of certain custom classes in my class. If I
simply implement the IDisposable interface, then would all these
instances be disposed
automatically killed? Or do I need to set them to nothing explicitly?
If I need to set them to nothing explicitly, then in which method
should I set them to
nothing?
Please help.
regards,
Rajesh