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

IndexOf() private method

private IndexOf ( string tableName, string tableNamespace, bool chekforNull ) : int
tableName string
tableNamespace string
chekforNull bool
return int
        internal int IndexOf(string tableName, string tableNamespace, bool chekforNull)
        {
            // this should be public! why it is missing?
            if (chekforNull)
            {
                if (tableName == null)
                {
                    throw ExceptionBuilder.ArgumentNull(nameof(tableName));
                }
                if (tableNamespace == null)
                {
                    throw ExceptionBuilder.ArgumentNull(nameof(tableNamespace));
                }
            }
            int index = InternalIndexOf(tableName, tableNamespace);
            return (index < 0) ? -1 : index;
        }

Same methods

DataTableCollection::IndexOf ( DataTable table ) : int
DataTableCollection::IndexOf ( string tableName ) : int
DataTableCollection::IndexOf ( string tableName, string tableNamespace ) : int