Ejemplo n.º 1
0
 internal bool ChildDefSupported(ElementDef def)
 {
     if (childDefs == null)
     {
         throw new Exception($"{name} does not support child elements.");
     }
     return(childDefs.Contains(def));
 }
Ejemplo n.º 2
0
        internal int GetInternalOrder(ElementDef childDef)
        {
            var index = memberDefs.IndexOf(childDef);

            if (index == -1)
            {
                throw new Exception($"Element {childDef.name} is not supported.");
            }
            return(index);
        }
Ejemplo n.º 3
0
        internal int GetInternalOrder(ElementDef childDef)
        {
            var index = elementDefs.IndexOf(childDef);

            if (index == -1)
            {
                throw new Exception($"Element {childDef.name} is not supported.");
            }
            return(elementMap != null
                ? elementMap[index]
                : index);
        }
Ejemplo n.º 4
0
 public ElementDef(ElementDef other) : base(other)
 {
     name     = other.name;
     required = other.required;
 }