/// <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); }
public CEnum(string name, CTree parentTree) : base(name, parentTree) { }
public CTree(string name, CTree parent) { Name = name; Parent = parent; }
/// <inheritdoc /> public CDefine(string name, string value, CTree parentTree) : base(name, parentTree) { Value = value; }