vrLib SDK Documentation
SerializableDictionary<(Of <(TKey, TValue>)>) Class
NamespacesVideoRay.UtilSerializableDictionary<(Of <(TKey, TValue>)>)
A generic dictionay that can be xml serialized. This code was copied mostly whole from Paul Welter's Weblog
Declaration Syntax
C#Visual BasicVisual C++
public class SerializableDictionary<TKey, TValue> : Dictionary<TKey, TValue>, 
	IXmlSerializable
Public Class SerializableDictionary(Of TKey, TValue) _
	Inherits Dictionary(Of TKey, TValue) _
	Implements IXmlSerializable
generic<typename TKey, typename TValue>
public ref class SerializableDictionary : public Dictionary<TKey, TValue>, 
	IXmlSerializable
Generic Template Parameters
TKey
Type for key
TValue
Type for value
Members
All MembersConstructorsMethodsPropertiesFields



IconMemberDescription
SerializableDictionary<(Of <(TKey, TValue>)>)()()()
Initializes a new instance of the SerializableDictionary<(Of <(TKey, TValue>)>) class

Add(TKey, TValue)
Adds the specified key and value to the dictionary.
(Inherited from Dictionary<(Of <(TKey, TValue>)>).)
AdditionalTypes
Array of additional types that can be used during serialization. These would be any complex types which are used by the class to be serialized.

Clear()()()
Removes all keys and values from the Dictionary<(Of <(TKey, TValue>)>).
(Inherited from Dictionary<(Of <(TKey, TValue>)>).)
Comparer
Gets the IEqualityComparer<(Of <(T>)>) that is used to determine equality of keys for the dictionary.
(Inherited from Dictionary<(Of <(TKey, TValue>)>).)
ContainsKey(TKey)
Determines whether the Dictionary<(Of <(TKey, TValue>)>) contains the specified key.
(Inherited from Dictionary<(Of <(TKey, TValue>)>).)
ContainsValue(TValue)
Determines whether the Dictionary<(Of <(TKey, TValue>)>) contains a specific value.
(Inherited from Dictionary<(Of <(TKey, TValue>)>).)
Count
Gets the number of key/value pairs contained in the Dictionary<(Of <(TKey, TValue>)>).
(Inherited from Dictionary<(Of <(TKey, TValue>)>).)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetEnumerator()()()
Returns an enumerator that iterates through the Dictionary<(Of <(TKey, TValue>)>).
(Inherited from Dictionary<(Of <(TKey, TValue>)>).)
GetHashCode()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetObjectData(SerializationInfo, StreamingContext)
Implements the ISerializable interface and returns the data needed to serialize the Dictionary<(Of <(TKey, TValue>)>) instance.
(Inherited from Dictionary<(Of <(TKey, TValue>)>).)
GetSchema()()()
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.

GetType()()()
Gets the Type of the current instance.
(Inherited from Object.)
Item[([(TKey])])
Gets or sets the value associated with the specified key.
(Inherited from Dictionary<(Of <(TKey, TValue>)>).)
Keys
Gets a collection containing the keys in the Dictionary<(Of <(TKey, TValue>)>).
(Inherited from Dictionary<(Of <(TKey, TValue>)>).)
OnDeserialization(Object)
Implements the ISerializable interface and raises the deserialization event when the deserialization is complete.
(Inherited from Dictionary<(Of <(TKey, TValue>)>).)
ReadXml(XmlReader)
Generates an object from its XML representation.

Remove(TKey)
Removes the value with the specified key from the Dictionary<(Of <(TKey, TValue>)>).
(Inherited from Dictionary<(Of <(TKey, TValue>)>).)
ToString()()()
Returns a String that represents the current Object.
(Inherited from Object.)
TryGetValue(TKey, TValue%)
Gets the value associated with the specified key.
(Inherited from Dictionary<(Of <(TKey, TValue>)>).)
Values
Gets a collection containing the values in the Dictionary<(Of <(TKey, TValue>)>).
(Inherited from Dictionary<(Of <(TKey, TValue>)>).)
WriteXml(XmlWriter)
Converts an object into its XML representation.

Inheritance Hierarchy
Object
Dictionary<(Of <(TKey, TValue>)>)
 SerializableDictionary<(Of <(TKey, TValue>)>)

Assembly: vrLib (Module: vrLib) Version: 2.0.1.0 (2.0.1.0)