System.Data.DataTableCollection.AddRange C# (CSharp) Method

AddRange() public method

public AddRange ( DataTable tables ) : void
tables DataTable
return void
        public void AddRange(DataTable[] tables)
        {
            long logScopeId = DataCommonEventSource.Log.EnterScope("<ds.DataTableCollection.AddRange|API> {0}", ObjectID);
            try
            {
                if (_dataSet._fInitInProgress)
                {
                    _delayedAddRangeTables = tables;
                    return;
                }

                if (tables != null)
                {
                    foreach (DataTable table in tables)
                    {
                        if (table != null)
                        {
                            Add(table);
                        }
                    }
                }
            }
            finally
            {
                DataCommonEventSource.Log.ExitScope(logScopeId);
            }
        }