public void Add(DataTable table)
{
IntPtr ptr;
Bid.ScopeEnter(out ptr, "<ds.DataTableCollection.Add|API> %d#, table=%d\n", this.ObjectID, (table != null) ? table.ObjectID : 0);
try
{
this.OnCollectionChanging(new CollectionChangeEventArgs(CollectionChangeAction.Add, table));
this.BaseAdd(table);
this.ArrayAdd(table);
if (table.SetLocaleValue(this.dataSet.Locale, false, false) || table.SetCaseSensitiveValue(this.dataSet.CaseSensitive, false, false))
{
table.ResetIndexes();
}
this.OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Add, table));
}
finally
{
Bid.ScopeLeave(ref ptr);
}
}