J
Jim Bancroft
Hi everyone,
I suppose this question reaches a little further than just DataSets, but
I was wondering if I should/need to call the Dispose() method on a DataSet
I'm about to reassign. For instance:
DataSet m_DataSet = new DataSet("My DataSet");
//do something below here...
//now, in the same method, reassign m_DataSet. But should I call Dispose()
first?
m_DataSet = new DataSet("Another DataSet");
I'm not sure if just reassigning the m_DataSet variable (without calling
Dispose) is ok or maybe not the best practice. Or, is it a Bad Idea,
capitalized and underscored?
Thanks for the help.
-Jim
I suppose this question reaches a little further than just DataSets, but
I was wondering if I should/need to call the Dispose() method on a DataSet
I'm about to reassign. For instance:
DataSet m_DataSet = new DataSet("My DataSet");
//do something below here...
//now, in the same method, reassign m_DataSet. But should I call Dispose()
first?
m_DataSet = new DataSet("Another DataSet");
I'm not sure if just reassigning the m_DataSet variable (without calling
Dispose) is ok or maybe not the best practice. Or, is it a Bad Idea,
capitalized and underscored?
Thanks for the help.
-Jim