private void FromXmlNodeList(XmlNodeList nodes) { foreach (XmlNode node in nodes) { IModifyResult mr = ModifyResultHelper.GetModifyResultByType(XmlHelper.GetAttributeText(node, "type")); mr.FromXmlNode(node); this.Add(mr); } }
private static void XmlNodeListToCollection(XmlNodeList nodeList, ModifyResultCollection collection) { foreach (XmlNode node in nodeList) { IModifyResult mr = ModifyResultHelper.GetModifyResultByType(XmlHelper.GetAttributeText(node, "type")); mr.FromXmlNode(node); collection.Add(mr); } }