Simple Question. Is it important to use the using statement when working with typed dataset table adapters? Most examples I have seen on the net never use the using statement.
using (Data_ItemTableAdapter adapter = new Data_ItemTableAdapter())
{
DataItemTable = a.GetDataByDataItemID(DataItemID);
// more code here
}
Thanks for your help!!
Edit: Seems like the general consensus is that it is probably a good idea to use "using" in this situation, because it certainly would not hurt, and it doesn't require much effort. Just not sure if it is worthwhile to go back through this old project and change all the code. Thanks for the advice!