예제 #1
0
        public override void AddElement(HrdElement elementBase)
        {
            if(elementBase.Name!=null)
                throw new Exception("Array can't contains named elements.");

            base.AddElement(elementBase);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public override void AddElement(HrdElement elementBase)
 {
     throw new NotSupportedException("Attribute can't contains any other element.");
 }