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