CharacterMappingDictionary ClassCharacterMappingDictionary ClassCharacterMappingDictionary Class
Represents a collection of mappings from a Unicode codepoint to a string which may be applied during
serialization.
Inheritance Hierarchy
- System.ObjectSystem.ObjectSystem::Object
- XmlPrime.Serialization.CharacterMappingDictionaryXmlPrime.Serialization.CharacterMappingDictionaryXmlPrime.Serialization::CharacterMappingDictionary
- Namespace: XmlPrime.SerializationXmlPrime.SerializationXmlPrime.Serialization
- Assembly: XmlPrime (in XmlPrime.dll)
Syntax
Public NotInheritable Class CharacterMappingDictionary _ Implements IDictionary(Of Integer, String), _ ICollection(Of KeyValuePair(Of Integer, String)), _ IEnumerable(Of KeyValuePair(Of Integer, String)), _ System.Collections.IEnumerable
public sealed class CharacterMappingDictionary : IDictionary<int, string>, ICollection<KeyValuePair<int, string>>, IEnumerable<KeyValuePair<int, string>>, System.Collections.IEnumerable
public: ref class CharacterMappingDictionary sealed : IDictionary<int, String^>, ICollection<KeyValuePair<int, String^>>, IEnumerable<KeyValuePair<int, String^>>, System.Collections::IEnumerable^
The CharacterMappingDictionaryCharacterMappingDictionaryCharacterMappingDictionary
type exposes the following members.
Properties
Property | Description | |
---|---|---|
![]() | CountCountCount | Gets the number of character mappings in the CharacterMappingDictionaryCharacterMappingDictionaryCharacterMappingDictionary. |
![]() | IsReadOnlyIsReadOnlyIsReadOnly | Gets a value indicating whether the collection is read-only. |
![]() | ItemItemItem | Gets or sets the stringStringString to which the given Unicode codepoint is mapped. |
![]() | KeysKeysKeys | Gets a collection of intIntegerint values containing the character mapping keys. |
![]() | ValuesValuesValues | Gets a collection of stringStringString values containing the character mapping strings. |
Methods
Method | Description | |
---|---|---|
![]() | Add (char, string)Add (Char, String)Add (char, String^) | Adds a mapping from a character to a string. |
![]() | Add (int, string)Add (Integer, String)Add (int, String^) | Adds a mapping from a Unicode codepoint to a string. |
![]() | ClearClearClear | Removes all character mappings from the collection. |
![]() | ContainsKey (char)ContainsKey (Char)ContainsKey (char) | Returns a value indicating whether the CharacterMappingDictionaryCharacterMappingDictionaryCharacterMappingDictionary contains a mapping for the character specified by key. |
![]() | ContainsKey (int)ContainsKey (Integer)ContainsKey (int) | Returns a value indicating whether the CharacterMappingDictionaryCharacterMappingDictionaryCharacterMappingDictionary contains a mapping for the given Unicode codepoint. |
![]() | Object.EqualsObject.EqualsObject::Equals | Determines whether the specified objectObjectobject is equal to the current objectObjectobject.(Inherited from System.ObjectSystem.ObjectSystem::Object) |
![]() | Object.FinalizeObject.FinalizeObject::Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from System.ObjectSystem.ObjectSystem::Object) |
![]() | GetEnumeratorGetEnumeratorGetEnumerator | Returns an enumerator that iterates through the character mapping. |
![]() | Object.GetHashCodeObject.GetHashCodeObject::GetHashCode | Serves as a hash function for a particular type. (Inherited from System.ObjectSystem.ObjectSystem::Object) |
![]() | Object.GetTypeObject.GetTypeObject::GetType | Gets the type of the current instance.(Inherited from System.ObjectSystem.ObjectSystem::Object) |
![]() | Object.MemberwiseCloneObject.MemberwiseCloneObject::MemberwiseClone | Creates a shallow copy of the current objectObjectobject.(Inherited from System.ObjectSystem.ObjectSystem::Object) |
![]() | Remove (char)Remove (Char)Remove (char) | Removes the mapping of the specified character. |
![]() | Remove (int)Remove (Integer)Remove (int) | Removes the mapping of the specified Unicode codepoint. |
![]() | Object.ToStringObject.ToStringObject::ToString | Returns a string that represents the current object.(Inherited from System.ObjectSystem.ObjectSystem::Object) |
![]() | TryGetValue (char, out string)TryGetValue (Char, ByRef String)TryGetValue (char, String^%) | Gets the string to which key is mapped if such a mapping exists. |
![]() | TryGetValue (int, out string)TryGetValue (Integer, ByRef String)TryGetValue (int, String^%) | Gets the string to which a given Unicode codepoint is mapped if such a mapping exists. |
Explicit Interface Implementations
Remarks
The CharacterMappingDictionaryCharacterMappingDictionaryCharacterMappingDictionary is used in the XdmWriterSettingsXdmWriterSettingsXdmWriterSettings to specify the mapping from single Unicode characters to strings of Unicode characters. This mapping is applied during the character expansion phase of serialization.