예제 #1
0
        public object Clone()
        {
            StructureFieldList list = new StructureFieldList();

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

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