ASP.NET C#: Using DataTable

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
}
, , ,

Leave a Reply

You must be logged in to post a comment.