AccessProviderSample.AccessDBProvider.GetDataTable C# (CSharp) Method

GetDataTable() private method

Get the DataTable object which can be used to operate on for the specified table in the data source
private GetDataTable ( DataSet ds, string tableName ) : DataTable
ds System.Data.DataSet DataSet object which contains the tables /// schema
tableName string Name of the table
return System.Data.DataTable
        internal DataTable GetDataTable(DataSet ds, string tableName)
        {
            Debug.Assert(ds != null);
            Debug.Assert(tableName != null);

            DataTable table = ds.Tables[tableName];
            table.Locale = CultureInfo.InvariantCulture;

            return table;
        }