C
cbmeeks
I think I know the answer to this but I would like to confim.
I have an app where I've built a custom DataSet containing several
DataTables.
Within the DataTables, I sometimes check for existing rows. I do this
like this:
DataRow[] dr = dtTable.Select("Category='VHS'");
if(dr.Length > 0)
......
This works fine. However, I am worried about de-allocating the DataRow
(dr) object. There is no Dispose method so should I explicitly set dr
= null every time or just not worry about it? In the same fasion that
I don't worry about de-allocating strings, ints, etc.
Thanks
cb
I have an app where I've built a custom DataSet containing several
DataTables.
Within the DataTables, I sometimes check for existing rows. I do this
like this:
DataRow[] dr = dtTable.Select("Category='VHS'");
if(dr.Length > 0)
......
This works fine. However, I am worried about de-allocating the DataRow
(dr) object. There is no Dispose method so should I explicitly set dr
= null every time or just not worry about it? In the same fasion that
I don't worry about de-allocating strings, ints, etc.
Thanks
cb