private static XPathNavigator GuardSingleNode(TagModel model, XPathNodeIterator nodes, ITagAttribute select) { if (nodes.Count > 1) { throw TagException.SingleNodeExpected(GetAsString(select, model)).Decorate(select.Context); } nodes.MoveNext(); return(nodes.Current); }