void UpdateFromPEFile() { while (this.itemsCore.Count > this.peFile.SectionHeaders.Length) { var se = this.itemsCore[this.itemsCore.Count - 1]; this.itemsCore.Remove(se); } while (this.itemsCore.Count < this.peFile.SectionHeaders.Length) { var se = new SectionHeaderModel(this.peFile.SectionHeaders[this.itemsCore.Count]); this.itemsCore.Add(se); } this.Length = (ulong)(this.Items.Count * SectionHeader.Size); }
void UpdateFromPEFile() { while (this.itemsCore.Count > this.peFile.SectionHeaders.Length) { var se = this.itemsCore[this.itemsCore.Count - 1]; this.itemsCore.Remove(se); } while (this.itemsCore.Count < this.peFile.SectionHeaders.Length) { var se = new SectionHeaderModel(this.peFile.SectionHeaders[this.itemsCore.Count]); this.itemsCore.Add(se); } this.Length = (ulong)(this.Items.Count * SectionHeader.Size); }