TOP

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
}
  • RSS
  • email
  • Facebook
  • Twitter
  • del.icio.us

Leave a Reply