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

IndexOf() public method

Returns the index of a specified .
public IndexOf ( DataTable table ) : int
table DataTable
return int
        public int IndexOf(DataTable table)
        {
            int tableCount = _list.Count;
            for (int i = 0; i < tableCount; ++i)
            {
                if (table == (DataTable)_list[i])
                {
                    return i;
                }
            }
            return -1;
        }

Same methods

DataTableCollection::IndexOf ( string tableName ) : int
DataTableCollection::IndexOf ( string tableName, string tableNamespace ) : int
DataTableCollection::IndexOf ( string tableName, string tableNamespace, bool chekforNull ) : int