public static IList<XPathItem> NavigatorsToItems(IList<XPathNavigator> listNavigators) {
// Check to see if the navigator cache implements IList<XPathItem>
IList<XPathItem> listItems = listNavigators as IList<XPathItem>;
if (listItems != null)
return listItems;
// Create XmlQueryNodeSequence, which does implement IList<XPathItem>
return new XmlQueryNodeSequence(listNavigators);
}