public void parse_unit_or_name(Action <Hunk> h) { var hunk = new UnitHunk(); h(hunk); var n = this.ReadString(); if (n == null) { throw new BadImageFormatException(string.Format("{0} has invalid name.", hunk.HunkType)); } hunk.Name = n; }
public void parse_unit_or_name(Action<Hunk> h) { var hunk = new UnitHunk(); h(hunk); var n = this.ReadString(); if (n == null) throw new BadImageFormatException(string.Format("{0} has invalid name.", hunk.HunkType)); hunk.Name = n; }