public override void AddElement(HrdElement elementBase) { if(elementBase.Name!=null) throw new Exception("Array can't contains named elements."); base.AddElement(elementBase); }
public override void AddElement(HrdElement elementBase) { if (elementBase.Name == null) throw new Exception("An element without the name can't be added to HrdNode."); base.AddElement(elementBase); }
public override void AddElement(HrdElement elementBase) { throw new NotSupportedException("Attribute can't contains any other element."); }