本文整理汇总了C#中System.Xml.XmlBufferReader类的典型用法代码示例。如果您正苦于以下问题:C# XmlBufferReader类的具体用法?C# XmlBufferReader怎么用?C# XmlBufferReader使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XmlBufferReader类属于System.Xml命名空间,在下文中一共展示了XmlBufferReader类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: XmlBaseReader
protected XmlBaseReader()
{
_bufferReader = new XmlBufferReader(this);
_nsMgr = new NamespaceManager(_bufferReader);
_quotas = XmlDictionaryReaderQuotas.Max;
_rootElementNode = new XmlElementNode(_bufferReader);
_atomicTextNode = new XmlAtomicTextNode(_bufferReader);
_node = s_closedNode;
}
示例2: XmlBaseReader
protected XmlBaseReader()
{
this.bufferReader = new XmlBufferReader(this);
this.nsMgr = new NamespaceManager(bufferReader);
this.quotas = new XmlDictionaryReaderQuotas();
this.rootElementNode = new XmlElementNode(bufferReader);
this.atomicTextNode = new XmlAtomicTextNode(bufferReader);
this.node = closedNode;
}
示例3: Equals2
private bool Equals2(int key2, XmlBufferReader bufferReader2)
{
switch (this.type)
{
case StringHandleType.Dictionary:
return this.bufferReader.Equals2(this.key, key2, bufferReader2);
case StringHandleType.UTF8:
return this.bufferReader.Equals2(this.offset, this.length, bufferReader2.GetDictionaryString(key2).Value);
}
return (this.GetString() == this.bufferReader.GetDictionaryString(key2).Value);
}
示例4: XmlAttributeNode
public XmlAttributeNode(XmlBufferReader bufferReader)
: this(new PrefixHandle(bufferReader), new StringHandle(bufferReader), new ValueHandle(bufferReader))
{
}
示例5: XmlElementNode
public XmlElementNode(XmlBufferReader bufferReader)
: this(new PrefixHandle(bufferReader),
new StringHandle(bufferReader),
new ValueHandle(bufferReader))
{
}
示例6: NamespaceManager
public NamespaceManager(XmlBufferReader bufferReader)
{
_bufferReader = bufferReader;
_shortPrefixUri = new Namespace[(int)PrefixHandleType.Max];
_shortPrefixUri[(int)PrefixHandleType.Empty] = s_emptyNamespace;
_namespaces = null;
_nsCount = 0;
_attributes = null;
_attributeCount = 0;
_space = XmlSpace.None;
_lang = string.Empty;
_depth = 0;
}
示例7: XmlCommentNode
public XmlCommentNode(XmlBufferReader bufferReader)
: base(XmlNodeType.Comment,
new PrefixHandle(bufferReader),
new StringHandle(bufferReader),
new ValueHandle(bufferReader),
XmlNodeFlags.HasValue,
ReadState.Interactive,
null,
0)
{
}
示例8: XmlCDataNode
public XmlCDataNode(XmlBufferReader bufferReader)
: base(XmlNodeType.CDATA,
new PrefixHandle(bufferReader),
new StringHandle(bufferReader),
new ValueHandle(bufferReader),
XmlNodeFlags.HasValue | XmlNodeFlags.HasContent,
ReadState.Interactive,
null,
0)
{
}
示例9: PrefixHandle
public PrefixHandle(XmlBufferReader bufferReader)
{
this.bufferReader = bufferReader;
}
示例10: Equals2
private bool Equals2(int offset2, int length2, XmlBufferReader bufferReader2)
{
StringHandleType type = _type;
if (type == StringHandleType.Dictionary)
return bufferReader2.Equals2(offset2, length2, _bufferReader.GetDictionaryString(_key).Value);
if (type == StringHandleType.UTF8)
return _bufferReader.Equals2(_offset, _length, bufferReader2, offset2, length2);
DiagnosticUtility.DebugAssert(type == StringHandleType.EscapedUTF8 || type == StringHandleType.ConstString, "");
return GetString() == _bufferReader.GetString(offset2, length2);
}
示例11: Namespace
public Namespace(XmlBufferReader bufferReader)
{
this.prefix = new PrefixHandle(bufferReader);
this.uri = new StringHandle(bufferReader);
this.outerUri = null;
this.uriString = null;
}
示例12: NamespaceManager
public NamespaceManager(XmlBufferReader bufferReader)
{
this.bufferReader = bufferReader;
this.shortPrefixUri = new Namespace[(int)PrefixHandleType.Max];
this.shortPrefixUri[(int)PrefixHandleType.Empty] = emptyNamespace;
this.namespaces = null;
this.nsCount = 0;
this.attributes = null;
this.attributeCount = 0;
this.space = XmlSpace.None;
this.lang = string.Empty;
this.depth = 0;
}
示例13: XmlAtomicTextNode
public XmlAtomicTextNode(XmlBufferReader bufferReader)
: base(XmlNodeType.Text,
new PrefixHandle(bufferReader),
new StringHandle(bufferReader),
new ValueHandle(bufferReader),
XmlNodeFlags.HasValue | XmlNodeFlags.AtomicValue | XmlNodeFlags.SkipValue | XmlNodeFlags.HasContent,
ReadState.Interactive,
null,
0)
{
}
示例14: Equals2
public bool Equals2(int key1, int key2, XmlBufferReader bufferReader2)
{
// If the keys aren't from the same dictionary, they still might be the same
if (key1 == key2)
return true;
else
return GetDictionaryString(key1).Value == bufferReader2.GetDictionaryString(key2).Value;
}
示例15: XmlWhitespaceTextNode
public XmlWhitespaceTextNode(XmlBufferReader bufferReader)
: base(XmlNodeType.Whitespace,
new PrefixHandle(bufferReader),
new StringHandle(bufferReader),
new ValueHandle(bufferReader),
XmlNodeFlags.HasValue,
ReadState.Interactive,
null,
0)
{
}