示例#1
0
        protected SubrecordBase(Xml.Group node)
        {
            if (node.name.StartsWith("&#x"))
            {
                string[] val = node.name.Split(new[] { ';' }, 2, StringSplitOptions.None);
                var      c   = (char)int.Parse(val[0].Substring(3), NumberStyles.HexNumber, null);
                this.name = c + val[1];
            }
            else
            {
                this.name = node.name;
            }

            this.repeat   = node.repeat;
            this.optional = node.optional;
            this.desc     = node.desc;
        }
示例#2
0
 public SubrecordGroup(Group node, SubrecordBase[] items)
     : base(node)
 {
     this.elements = items;
 }