コード例 #1
0
 internal void Add(BlockHistoryObject incoming)
 {
     _collectionArray[_currentPosition] = incoming;
     _currentPosition++;
     if (_currentPosition == 100)
     {
         _currentPosition = 0;
         _isFull = true;
     }
 }
コード例 #2
0
 internal BlockHistoryObjectCollectionEnumerator(BlockHistoryObject[] bho, int bhoPosition, int count)
 {
     _collection = bho;
     _startPosition = bhoPosition - 1; //We have to start at -1
     _cursor = _startPosition;
     _maxCount = count;
 }