java: public Record getNext() {if(!hasNext()) {throw new RuntimeException("Attempt to read past end of record stream");}_countRead ++;return _list.get(_nextIndex++);}
C#: public Record GetNext(){if (_nextIndex >= _list.Count){throw new Exception("Attempt to Read past end of record stream");}_countRead++;return (Record)_list[_nextIndex++];}