public object Clone()
        {
            StructureFieldList list = new StructureFieldList();

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

            return(list);
        }
Exemple #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);
        }
        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);
        }
Exemple #4
0
 public IntermediateStructure()
 {
     this.FieldList = new StructureFieldList();
 }