Lucene.Net.Support.Buffer.CheckIndex C# (CSharp) Метод

CheckIndex() приватный Метод

Checks the given index against the limit, throwing an IndexOutOfRangeException if it is not smaller than the limit or is smaller than zero.
private CheckIndex ( int i ) : int
i int
Результат int
        internal int CheckIndex(int i)
        {
            if ((i < 0) || (i >= limit))
                throw new IndexOutOfRangeException();
            return i;
        }

Same methods

Buffer::CheckIndex ( int i, int nb ) : int