DataSet and DataTable both implement IDisposable, so, by conventional best practices, I should call their Dispose() methods.
However, from what I\'ve read so far, Da
This is the right way to properly Dispose the DataTable.
DataTable
private DataTable CreateSchema_Table() { DataTable td = null; try { td = new DataTable(); //use table DataTable here return td.Copy(); } catch { } finally { if (td != null) { td.Constraints.Clear(); td.Clear(); td.Dispose(); td = null; } } }