예제 #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;
 }