Пример #1
0
        public object Clone()
        {
            StructureFieldList list = new StructureFieldList();

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

            return(list);
        }
Пример #2
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);
        }