public List(System.Collections.IEnumerator nodes) { Items = new List<ListItem>(); while (nodes.MoveNext()) { Items.Add(new ListItem(nodes.Current as XElement)); } }
public List(IEnumerable<XNode> searchResult) { Items = new List<ListItem>(); foreach (System.Xml.Linq.XElement node in searchResult) { Items.Add(new ListItem(node)); } }