Beispiel #1
0
        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;
        }
Beispiel #2
0
 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;
 }