To auto-close a datatable after it is done being used (as well as creating a DataTable), a using statement is most helpful.
using (DataTable dt = new DataTable()){ //your datatable specific code here }
To auto-close a datatable after it is done being used (as well as creating a DataTable), a using statement is most helpful.
using (DataTable dt = new DataTable()){ //your datatable specific code here }