As mentioned earlier, a DataSet is a container of data. Its data are organized inside objects of type DataTable. The DataTableCollection property of the DataSet is simply an optimized ICollection component that acts as a container of DataTable objects within the DataSet.
The advantages of maintaining a collection of DataTable objects are as follows:
It allows the DataSet to provide a convenient way for consumers to refer to all its content as a single object.
It allows consumers to sort the content of a DataSet based on a specific member of the DataTable components contained within the collection.
It allows consumers to easily iterate through the content of a DataSet and perform actions.
This component is very complex and easily manageable. A developer does not have to use this component property directly because the operations of adding and deleting DataTable objects are done entirely by the DataSet component.