本文整理匯總了C#中System.Xml.XPath.BaseIterator類的典型用法代碼示例。如果您正苦於以下問題:C# BaseIterator類的具體用法?C# BaseIterator怎麽用?C# BaseIterator使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
BaseIterator類屬於System.Xml.XPath命名空間,在下文中一共展示了BaseIterator類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Evaluate
public override object Evaluate (BaseIterator iter)
{
return (double) arg0.EvaluateNodeSet (iter).Count;
}
示例2: Evaluate
public override object Evaluate (BaseIterator iter)
{
IHasXmlNode xn = iter.Current as IHasXmlNode;
if (xn == null)
return String.Empty;
XmlNode n = xn.GetNode ();
if (n.OwnerDocument == null)
return String.Empty;
XmlDocumentType doctype = n.OwnerDocument.DocumentType;
if (doctype == null)
return String.Empty;
XmlEntity ent = doctype.Entities.GetNamedItem (arg0.EvaluateString (iter)) as XmlEntity;
if (ent == null)
return String.Empty;
return ent.SystemId != null ? ent.SystemId : String.Empty;
}
示例3: GetReturnType
public override XPathResultType GetReturnType (BaseIterator iter)
{
return XPathResultType.Any;
}
示例4: EvaluateBoolean
public override bool EvaluateBoolean (BaseIterator iter)
{
if (arg0.GetReturnType (iter) == XPathResultType.NodeSet)
return arg0.EvaluateBoolean (iter);
return arg0.EvaluateNodeSet (iter).MoveNext ();
}
示例5: ToBoolean
public static bool ToBoolean (BaseIterator iter)
{
return iter != null && iter.MoveNext ();
}
示例6: Evaluate
public override object Evaluate (BaseIterator iter)
{
return v.Evaluate (iter.NamespaceManager as XsltContext);
}