System.Data.DataError.IndexOf C# (CSharp) Méthode

IndexOf() private méthode

private IndexOf ( DataColumn column ) : int
column DataColumn
Résultat int
        internal int IndexOf(DataColumn column)
        {
            // try to find the column
            for (int i = 0; i < _count; i++)
            {
                if (_errorList[i]._column == column)
                {
                    return i;
                }
            }

            if (_count >= _errorList.Length)
            {
                int newCapacity = Math.Min(_count * 2, column.Table.Columns.Count);
                var biggerList = new ColumnError[newCapacity];
                Array.Copy(_errorList, 0, biggerList, 0, _count);
                _errorList = biggerList;
            }
            return _count;
        }