Exemplo n.º 1
0
        public object Clone()
        {
            StructureFieldList list = new StructureFieldList();

            foreach (var item in this)
            {
                list.Add(item.Clone() as StructureField);
            }

            return(list);
        }
Exemplo n.º 2
0
        public static IntermediateStructure Parse(XElement element)
        {
            if (element.Name != typeof(IntermediateStructure).Name)
            {
                throw new NotImplementedException();
            }

            IntermediateStructure result = new IntermediateStructure();

            result.Name      = element.Attribute(strName).Value;
            result.FieldList = StructureFieldList.Parse(element.Element(typeof(StructureFieldList).Name));

            return(result);
        }
Exemplo n.º 3
0
        internal static StructureFieldList Parse(XElement xElement)
        {
            if (xElement.Name != typeof(StructureFieldList).Name)
            {
                throw new Exception();
            }

            StructureFieldList list = new StructureFieldList();

            foreach (var item in xElement.Elements(typeof(StructureField).Name))
            {
                list.Add(StructureField.Parse(item));
            }

            return(list);
        }
Exemplo n.º 4
0
 public IntermediateStructure()
 {
     this.FieldList = new StructureFieldList();
 }