コード例 #1
0
        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));
        }
コード例 #2
0
ファイル: PdbRecordsReader.cs プロジェクト: adarmus/ebook
        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);
        }