Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public CEnum(string name, CTree parentTree) : base(name, parentTree)
 {
 }
Ejemplo n.º 3
0
 public CTree(string name, CTree parent)
 {
     Name   = name;
     Parent = parent;
 }
Ejemplo n.º 4
0
 /// <inheritdoc />
 public CDefine(string name, string value, CTree parentTree) : base(name, parentTree)
 {
     Value = value;
 }