示例#1
0
        /// <inheritdoc />
        public override void AddSubTree(CTree subTree)
        {
            if (!(subTree is CEnumValue))
            {
                throw new ArgumentException("CEnum only accepts subtrees of type CEnumValue.", nameof(subTree));
            }

            base.AddSubTree(subTree);
        }
示例#2
0
 public CEnum(string name, CTree parentTree) : base(name, parentTree)
 {
 }
示例#3
0
 public CTree(string name, CTree parent)
 {
     Name   = name;
     Parent = parent;
 }
示例#4
0
 /// <inheritdoc />
 public CDefine(string name, string value, CTree parentTree) : base(name, parentTree)
 {
     Value = value;
 }