本文整理汇总了C#中System.Xml.XmlBufferReader.Equals2方法的典型用法代码示例。如果您正苦于以下问题:C# XmlBufferReader.Equals2方法的具体用法?C# XmlBufferReader.Equals2怎么用?C# XmlBufferReader.Equals2使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Xml.XmlBufferReader
的用法示例。
在下文中一共展示了XmlBufferReader.Equals2方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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);
}
示例2: Equals2
bool Equals2(int offset2, int length2, XmlBufferReader bufferReader2)
{
StringHandleType type = this.type;
if (type == StringHandleType.Dictionary)
return bufferReader2.Equals2(offset2, length2, bufferReader.GetDictionaryString(this.key).Value);
if (type == StringHandleType.UTF8)
return bufferReader.Equals2(this.offset, this.length, bufferReader2, offset2, length2);
Fx.Assert(type == StringHandleType.EscapedUTF8 || type == StringHandleType.ConstString, "");
return GetString() == bufferReader.GetString(offset2, length2);
}
示例3: Equals2
private bool Equals2(int offset2, int length2, XmlBufferReader bufferReader2)
{
switch (this.type)
{
case StringHandleType.Dictionary:
return bufferReader2.Equals2(offset2, length2, this.bufferReader.GetDictionaryString(this.key).Value);
case StringHandleType.UTF8:
return this.bufferReader.Equals2(this.offset, this.length, bufferReader2, offset2, length2);
}
return (this.GetString() == this.bufferReader.GetString(offset2, length2));
}