本文整理汇总了C#中IXmlNode.RequireRealizable方法的典型用法代码示例。如果您正苦于以下问题:C# IXmlNode.RequireRealizable方法的具体用法?C# IXmlNode.RequireRealizable怎么用?C# IXmlNode.RequireRealizable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IXmlNode
的用法示例。
在下文中一共展示了IXmlNode.RequireRealizable方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SysXmlSubtreeIterator
public SysXmlSubtreeIterator(IXmlNode parent, IXmlNamespaceSource namespaces)
: base(namespaces, parent)
{
if (null == parent)
throw Error.ArgumentNull("parent");
var source = parent.RequireRealizable<XmlNode>();
if (source.IsReal)
node = source.Value;
type = typeof(object);
}
示例2: SysXmlCursor
public SysXmlCursor(IXmlNode parent, IXmlKnownTypeMap knownTypes, IXmlNamespaceSource namespaces, CursorFlags flags)
: base(namespaces, parent)
{
if (null == parent)
throw Error.ArgumentNull("parent");
if (null == knownTypes)
throw Error.ArgumentNull("knownTypes");
this.knownTypes = knownTypes;
this.flags = flags;
this.index = -1;
var source = parent.RequireRealizable<XmlNode>();
if (source.IsReal)
node = source.Value;
}
示例3: XPathMutableCursor
public XPathMutableCursor(IXmlNode parent, CompiledXPath path,
IXmlIncludedTypeMap knownTypes, IXmlNamespaceSource namespaces, CursorFlags flags)
: base(path, namespaces, parent)
{
if (null == parent)
throw Error.ArgumentNull("parent");
if (null == path)
throw Error.ArgumentNull("path");
if (null == knownTypes)
throw Error.ArgumentNull("knownTypes");
if (!path.IsCreatable)
throw Error.XPathNotCreatable(path);
this.step = path.FirstStep;
this.knownTypes = knownTypes;
this.flags = flags;
var source = parent.RequireRealizable<XPathNavigator>();
if (source.IsReal)
iterator = new XPathBufferedNodeIterator(
source.Value.Select(path.FirstStep.Path));
}