public PdbRecords ReadAllRecords() { SetPositionToOriginal(); var records = new List <PdbRecordEntry>(); int lastEntryStart = 0; for (int i = 0; i < _numberOfRecords; i++) { var entry = new PdbRecordEntryReader(_reader); PdbRecordEntry ent = entry.Read(); if (ent.Offset < lastEntryStart) { throw new ApplicationException("offset < lastEntryStart"); } lastEntryStart = ent.Offset; records.Add(ent); } return(new PdbRecords(records)); }
public PdbRecords ReadAllRecords() { SetPositionToOriginal(); var records = new List<PdbRecordEntry>(); int lastEntryStart = 0; for (int i = 0; i < _numberOfRecords; i++) { var entry = new PdbRecordEntryReader(_reader); PdbRecordEntry ent = entry.Read(); if (ent.Offset < lastEntryStart) throw new ApplicationException("offset < lastEntryStart"); lastEntryStart = ent.Offset; records.Add(ent); } return new PdbRecords(records); }