P
Paul
Hi all,
I currenty have a datalayer and have decided to impliment IDisposable
with it. The data layer contains a number of objects which I can call
dispose on, but i'm not too sure if you need to worry about strings.
In the dispose method, is it best to set these to "", or set them to
null? Also, I have an List<T> object, should this be cleared and set
to null?
I usually clean things up myself, but figured for a datalayer,
IDisposable and using{} might be an extra safeguard.
Any help with this would be appreciated.
Paul
I currenty have a datalayer and have decided to impliment IDisposable
with it. The data layer contains a number of objects which I can call
dispose on, but i'm not too sure if you need to worry about strings.
In the dispose method, is it best to set these to "", or set them to
null? Also, I have an List<T> object, should this be cleared and set
to null?
I usually clean things up myself, but figured for a datalayer,
IDisposable and using{} might be an extra safeguard.
Any help with this would be appreciated.
Paul