本文整理汇总了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);
}