コード例 #1
0
ファイル: HrdArray.cs プロジェクト: niello/deusexmachina
        public override void AddElement(HrdElement elementBase)
        {
            if(elementBase.Name!=null)
                throw new Exception("Array can't contains named elements.");

            base.AddElement(elementBase);
        }
コード例 #2
0
ファイル: HrdNode.cs プロジェクト: niello/deusexmachina
        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
ファイル: HrdAttribute.cs プロジェクト: niello/deusexmachina
 public override void AddElement(HrdElement elementBase)
 {
     throw new NotSupportedException("Attribute can't contains any other element.");
 }