Click or drag to resize
SerializableDictionaryTKey, TValue Class
Adds xml serialization to the generic dictionary. Doesn't handle polymorphic keys/values. From http://weblogs.asp.net/pwelter34/archive/2006/05/03/444961.aspx
Inheritance Hierarchy
SystemObject
  System.Collections.GenericDictionaryTKey, TValue
    Slash.Serialization.XmlSerializableDictionaryTKey, TValue

Namespace: Slash.Serialization.Xml
Assembly: Slash.Serialization (in Slash.Serialization.dll) Version: 1.0.6018.40176
Syntax
public class SerializableDictionary<TKey, TValue> : Dictionary<TKey, TValue>, 
	IXmlSerializable

Type Parameters

TKey
Key type.
TValue
Value type.

The SerializableDictionaryTKey, TValue type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyItemElementName
Xml element name for items in dictionary.
Public propertyKeyElementName
Xml element name for key of items.
Public propertyValueElementName
Xml element name for value of items.
Top
Methods
  NameDescription
Public methodGetSchema
This method is reserved and should not be used. When implementing the IXmlSerializable interface, you should return null (Nothing in Visual Basic) from this method, and instead, if specifying a custom schema is required, apply the XmlSchemaProviderAttribute to the class.
Public methodReadXml
Generates an object from its XML representation.
Public methodWriteXml
Converts an object into its XML representation.
Top
See Also