System.Xml.XmlBufferReader.GetDictionaryString C# (CSharp) Méthode

GetDictionaryString() public méthode

public GetDictionaryString ( int key ) : XmlDictionaryString
key int
Résultat XmlDictionaryString
        public XmlDictionaryString GetDictionaryString(int key)
        {
            IXmlDictionary keyDictionary;
            if ((key & 1) != 0)
            {
                keyDictionary = _session;
            }
            else
            {
                keyDictionary = _dictionary;
            }
            XmlDictionaryString s;
            if (!keyDictionary.TryLookup(key >> 1, out s))
                XmlExceptionHelper.ThrowInvalidBinaryFormat(_reader);
            return s;
        }

Usage Example

Exemple #1
0
 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);
     }
 }
All Usage Examples Of System.Xml.XmlBufferReader::GetDictionaryString