private toString ( |
||
nodeIterator | ||
return | string |
public override object Evaluate(XPathNodeIterator context) { object argVal = base.Evaluate(context); XPathNavigator contextNode = context.Current.Clone(); switch (GetXPathType(argVal)) { case XPathResultType.NodeSet: XPathNavigator temp; while ((temp = input.Advance()) != null) { ProcessIds(contextNode, temp.Value); } break; case XPathResultType.String: ProcessIds(contextNode, (string)argVal); break; case XPathResultType.Number: ProcessIds(contextNode, StringFunctions.toString((double)argVal)); break; case XPathResultType.Boolean: ProcessIds(contextNode, StringFunctions.toString((bool)argVal)); break; case XPathResultType_Navigator: ProcessIds(contextNode, ((XPathNavigator)argVal).Value); break; } return(this); }
public override object Evaluate(XPathNodeIterator context) { object obj2 = base.Evaluate(context); XPathNavigator contextNode = context.Current.Clone(); switch (base.GetXPathType(obj2)) { case XPathResultType.Number: this.ProcessIds(contextNode, StringFunctions.toString((double)obj2)); break; case XPathResultType.String: this.ProcessIds(contextNode, (string)obj2); break; case XPathResultType.Boolean: this.ProcessIds(contextNode, StringFunctions.toString((bool)obj2)); break; case XPathResultType.NodeSet: XPathNavigator navigator2; while ((navigator2 = base.input.Advance()) != null) { this.ProcessIds(contextNode, navigator2.Value); } break; case ((XPathResultType)4): this.ProcessIds(contextNode, ((XPathNavigator)obj2).Value); break; } return(this); }