Implements a dictionary used to optimize Windows Communication Foundation (WCF)'s XML reader/writer implementations.
Assemblies: System.Runtime.Serialization.Xml (in System.Runtime.Serialization.Xml.dll)
System.Runtime.Serialization (in System.Runtime.Serialization.dll)
Thetype exposes the following members.
|Add||Adds a string to the .|
|Equals(Object)||Determines whether the specified object is equal to the current object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as the default hash function. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
|TryLookup(Int32, XmlDictionaryString)||Attempts to look up an entry in the dictionary.|
|TryLookup(String, XmlDictionaryString)||Checks the dictionary for a specified string value.|
|TryLookup(XmlDictionaryString, XmlDictionaryString)||Checks the dictionary for a specified XmlDictionaryString.|
Dictionaries establish a mapping between commonly appearing text strings, and integers, and provide an effective mechanism for compressing and decompressing XML. Windows Communication Foundation (WCF) uses 2 kinds of dictionaries, static and dynamic.
With static dictionaries, both sides of the communication use a predefined dictionary.
With dynamic dictionaries, the sending side can add new strings and their mappings not already in the static dictionary. Dynamic dictionaries are sent out of band with the message. Dynamic dictionaries use the XmlBinaryWriterSession and XmlBinaryReaderSession classes to transmit messages and mappings.