Dev2.Data.Binary_Objects.ReverseIndexIterator.FetchNextIndex C# (CSharp) Method

FetchNextIndex() public method

public FetchNextIndex ( ) : int
return int
        public int FetchNextIndex()
        {

            int canidate = _curValue;
            // assign a new curValue

            while(IndexList.Gaps.Contains(canidate))
            {
                canidate--;
            }

            int result = canidate;

            _curValue = canidate - 1; // save next value ;)

            return result;
        }