public static void XmlLoad(this List <TableIndex> list, XmlNode node, INHydrateModelObject root) { var nodes = node.SelectNodes("ti"); foreach (XmlNode n in nodes) { var newItem = new TableIndex(root); newItem.XmlLoad(n); list.Add(newItem); } }
public static XmlNode XmlLoad(this List <TableIndex> list, XmlNode node, INHydrateModelObject root) { if (node == null) { return(node); } foreach (XmlNode n in node.SelectNodes("ti")) { var newItem = new TableIndex(root); newItem.XmlLoad(n); list.Add(newItem); } return(node); }