title: Garbage Collection dispose of Datatable array in c#
body: <p>i'm new in GC,
  if i want to release a datatable array, does calling dispose() on all its datatables is enough? do i need to set null to the databale array too ? or to every datatable? </p>
  
  <p>is this enough?:</p>
  
  <pre><code> DataTable[] myTables = null;
               try
               {
                   myTables = DB.GetTables();
  
                   // use myTables....
               }
               finally
               {
                   // Dispose Data Tables
                   if (myTables != null)
                   {
                       foreach (DataTable dt in myTables)
                       {
                           if (dt != null)
                               dt.Dispose();
                       }
                   }
               }
  </code></pre>