November Happy Hour will be moved to Thursday December 5th.

Class SerializableDictionary<TKey, TValue>

Represents serializable dictionary.

Inheritance
System.Object
System.Collections.Generic.Dictionary<TKey, TValue>
SerializableDictionary<TKey, TValue>
Implements
System.Collections.Generic.IDictionary<TKey, TValue>
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey, TValue>>
System.Collections.IDictionary
System.Collections.ICollection
System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>
System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<TKey, TValue>>
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey, TValue>>
System.Collections.IEnumerable
System.Runtime.Serialization.ISerializable
System.Runtime.Serialization.IDeserializationCallback
System.Xml.Serialization.IXmlSerializable
Inherited Members
System.Collections.Generic.Dictionary<TKey, TValue>.Add(TKey, TValue)
System.Collections.Generic.Dictionary<TKey, TValue>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey, TValue>>.Add(System.Collections.Generic.KeyValuePair<TKey, TValue>)
System.Collections.Generic.Dictionary<TKey, TValue>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey, TValue>>.Contains(System.Collections.Generic.KeyValuePair<TKey, TValue>)
System.Collections.Generic.Dictionary<TKey, TValue>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey, TValue>>.Remove(System.Collections.Generic.KeyValuePair<TKey, TValue>)
System.Collections.Generic.Dictionary<TKey, TValue>.Clear()
System.Collections.Generic.Dictionary<TKey, TValue>.ContainsKey(TKey)
System.Collections.Generic.Dictionary<TKey, TValue>.ContainsValue(TValue)
System.Collections.Generic.Dictionary<TKey, TValue>.GetEnumerator()
System.Collections.Generic.Dictionary<TKey, TValue>.System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey, TValue>>.GetEnumerator()
System.Collections.Generic.Dictionary<TKey, TValue>.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Collections.Generic.Dictionary<TKey, TValue>.OnDeserialization(System.Object)
System.Collections.Generic.Dictionary<TKey, TValue>.Remove(TKey)
System.Collections.Generic.Dictionary<TKey, TValue>.TryGetValue(TKey, TValue)
System.Collections.Generic.Dictionary<TKey, TValue>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey, TValue>>.CopyTo(System.Collections.Generic.KeyValuePair<TKey, TValue>[], System.Int32)
System.Collections.Generic.Dictionary<TKey, TValue>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.Generic.Dictionary<TKey, TValue>.System.Collections.IEnumerable.GetEnumerator()
System.Collections.Generic.Dictionary<TKey, TValue>.System.Collections.IDictionary.get_Item(System.Object)
System.Collections.Generic.Dictionary<TKey, TValue>.System.Collections.IDictionary.set_Item(System.Object, System.Object)
System.Collections.Generic.Dictionary<TKey, TValue>.System.Collections.IDictionary.Add(System.Object, System.Object)
System.Collections.Generic.Dictionary<TKey, TValue>.System.Collections.IDictionary.Contains(System.Object)
System.Collections.Generic.Dictionary<TKey, TValue>.System.Collections.IDictionary.GetEnumerator()
System.Collections.Generic.Dictionary<TKey, TValue>.System.Collections.IDictionary.Remove(System.Object)
System.Collections.Generic.Dictionary<TKey, TValue>.Comparer
System.Collections.Generic.Dictionary<TKey, TValue>.Count
System.Collections.Generic.Dictionary<TKey, TValue>.Keys
System.Collections.Generic.Dictionary<TKey, TValue>.System.Collections.Generic.IDictionary<TKey, TValue>.Keys
System.Collections.Generic.Dictionary<TKey, TValue>.System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>.Keys
System.Collections.Generic.Dictionary<TKey, TValue>.Values
System.Collections.Generic.Dictionary<TKey, TValue>.System.Collections.Generic.IDictionary<TKey, TValue>.Values
System.Collections.Generic.Dictionary<TKey, TValue>.System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>.Values
System.Collections.Generic.Dictionary<TKey, TValue>.Item[TKey]
System.Collections.Generic.Dictionary<TKey, TValue>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey, TValue>>.IsReadOnly
System.Collections.Generic.Dictionary<TKey, TValue>.System.Collections.ICollection.IsSynchronized
System.Collections.Generic.Dictionary<TKey, TValue>.System.Collections.ICollection.SyncRoot
System.Collections.Generic.Dictionary<TKey, TValue>.System.Collections.IDictionary.IsFixedSize
System.Collections.Generic.Dictionary<TKey, TValue>.System.Collections.IDictionary.IsReadOnly
System.Collections.Generic.Dictionary<TKey, TValue>.System.Collections.IDictionary.Keys
System.Collections.Generic.Dictionary<TKey, TValue>.System.Collections.IDictionary.Values
System.Collections.Generic.Dictionary<TKey, TValue>.System.Collections.IDictionary.Item[System.Object]
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.BusinessFoundation.Data
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 12.17.2
Syntax
public class SerializableDictionary<TKey, TValue> : Dictionary<TKey, TValue>, IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, IDictionary, ICollection, IReadOnlyDictionary<TKey, TValue>, IReadOnlyCollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable, ISerializable, IDeserializationCallback, IXmlSerializable
Type Parameters
Name Description
TKey

The type of the key.

TValue

The type of the value.

Constructors

SerializableDictionary()

Initializes a new instance of the SerializableDictionary<TKey, TValue> class.

Declaration
public SerializableDictionary()

SerializableDictionary(IDictionary<TKey, TValue>)

Initializes a new instance of the SerializableDictionary<TKey, TValue> class.

Declaration
public SerializableDictionary(IDictionary<TKey, TValue> dictionary)
Parameters
Type Name Description
System.Collections.Generic.IDictionary<TKey, TValue> dictionary

The dictionary.

SerializableDictionary(IDictionary<TKey, TValue>, IEqualityComparer<TKey>)

Initializes a new instance of the SerializableDictionary<TKey, TValue> class.

Declaration
public SerializableDictionary(IDictionary<TKey, TValue> dictionary, IEqualityComparer<TKey> comparer)
Parameters
Type Name Description
System.Collections.Generic.IDictionary<TKey, TValue> dictionary

The dictionary.

System.Collections.Generic.IEqualityComparer<TKey> comparer

The comparer.

SerializableDictionary(IEqualityComparer<TKey>)

Initializes a new instance of the SerializableDictionary<TKey, TValue> class.

Declaration
public SerializableDictionary(IEqualityComparer<TKey> comparer)
Parameters
Type Name Description
System.Collections.Generic.IEqualityComparer<TKey> comparer

The comparer.

SerializableDictionary(Int32)

Initializes a new instance of the SerializableDictionary<TKey, TValue> class.

Declaration
public SerializableDictionary(int capacity)
Parameters
Type Name Description
System.Int32 capacity

The capacity.

SerializableDictionary(Int32, IEqualityComparer<TKey>)

Initializes a new instance of the SerializableDictionary<TKey, TValue> class.

Declaration
public SerializableDictionary(int capacity, IEqualityComparer<TKey> comparer)
Parameters
Type Name Description
System.Int32 capacity

The capacity.

System.Collections.Generic.IEqualityComparer<TKey> comparer

The comparer.

SerializableDictionary(SerializationInfo, StreamingContext)

Initializes a new instance of the SerializableDictionary<TKey, TValue> class.

Declaration
protected SerializableDictionary(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info

A System.Runtime.Serialization.SerializationInfo object containing the information required to serialize the System.Collections.Generic.Dictionary<TKey, TValue>.

System.Runtime.Serialization.StreamingContext context

A System.Runtime.Serialization.StreamingContext structure containing the source and destination of the serialized stream associated with the System.Collections.Generic.Dictionary<TKey, TValue>.

Methods

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 System.Xml.Serialization.XmlSchemaProviderAttribute to the class.

Declaration
protected virtual XmlSchema GetSchema()
Returns
Type Description
System.Xml.Schema.XmlSchema

An System.Xml.Schema.XmlSchema that describes the XML representation of the object that is produced by the System.Xml.Serialization.IXmlSerializable.WriteXml(System.Xml.XmlWriter) method and consumed by the System.Xml.Serialization.IXmlSerializable.ReadXml(System.Xml.XmlReader) method.

ReadXml(XmlReader)

Reads the XML.

Declaration
protected virtual void ReadXml(XmlReader reader)
Parameters
Type Name Description
System.Xml.XmlReader reader

The XML reader to use.

WriteXml(XmlWriter)

Writes the XML.

Declaration
protected virtual void WriteXml(XmlWriter writer)
Parameters
Type Name Description
System.Xml.XmlWriter writer

The XML writer to use.

Implements

System.Collections.Generic.IDictionary<TKey, TValue>
System.Collections.Generic.ICollection<T>
System.Collections.IDictionary
System.Collections.ICollection
System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
System.Runtime.Serialization.ISerializable
System.Runtime.Serialization.IDeserializationCallback
System.Xml.Serialization.IXmlSerializable