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); } }
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); }
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); }
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); }
public string GetString(XmlNameTable nameTable) { StringHandleType type = _type; if (type == StringHandleType.UTF8) { return(_bufferReader.GetString(_offset, _length, nameTable)); } if (type == StringHandleType.Dictionary) { return(nameTable.Add(_bufferReader.GetDictionaryString(_key).Value)); } DiagnosticUtility.DebugAssert(type == StringHandleType.ConstString, "Should be ConstString"); //If not Utf8 then the StringHandleType is ConstString return(nameTable.Add(s_constStrings[_key])); }
public string GetString(XmlNameTable nameTable) { StringHandleType type = this.type; if (type == StringHandleType.UTF8) { return(bufferReader.GetString(offset, length, nameTable)); } if (type == StringHandleType.Dictionary) { return(nameTable.Add(bufferReader.GetDictionaryString(key).Value)); } if (type == StringHandleType.ConstString) { return(nameTable.Add(constStrings[key])); } Fx.Assert(type == StringHandleType.EscapedUTF8, ""); return(bufferReader.GetEscapedString(offset, length, nameTable)); }
public string GetString(XmlNameTable nameTable) { StringHandleType type = _type; if (type == StringHandleType.UTF8) { return(_bufferReader.GetString(_offset, _length, nameTable)); } if (type == StringHandleType.Dictionary) { return(nameTable.Add(_bufferReader.GetDictionaryString(_key).Value)); } if (type == StringHandleType.ConstString) { return(nameTable.Add(s_constStrings[_key])); } // If none of the above, must be StringHandleType.EscapedUTF8 DiagnosticUtility.DebugAssert(type == StringHandleType.EscapedUTF8, "Should be EscapedUTF8"); return(_bufferReader.GetEscapedString(_offset, _length, nameTable)); }
private XmlDictionaryString GetDictionaryString() { DiagnosticUtility.DebugAssert(_type == ValueHandleType.Dictionary, ""); return(_bufferReader.GetDictionaryString(_offset)); }
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; }
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; }
XmlDictionaryString GetDictionaryString() { Fx.Assert(type == ValueHandleType.Dictionary, ""); return(bufferReader.GetDictionaryString(offset)); }
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; }
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); }
public bool Equals2(int key1, int key2, XmlBufferReader bufferReader2) { return ((key1 == key2) || (this.GetDictionaryString(key1).Value == bufferReader2.GetDictionaryString(key2).Value)); }
public bool Equals2(int key1, int key2, XmlBufferReader bufferReader2) { return((key1 == key2) || (this.GetDictionaryString(key1).Value == bufferReader2.GetDictionaryString(key2).Value)); }