public object Clone() { StructureFieldList list = new StructureFieldList(); foreach (var item in this) { list.Add(item.Clone() as StructureField); } return(list); }
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); }