OrderedDictionary.OrderedDictionary(SerializationInfo, StreamingContext) Constructor

Initializes a new instance of the OrderedDictionary class that is serializable using the specified SerializationInfo and StreamingContext objects.

Namespace: System.Collections.Specialized
Assembly: System (in system.dll)

protected OrderedDictionary (
	SerializationInfo info,
	StreamingContext context
protected OrderedDictionary (
	SerializationInfo info, 
	StreamingContext context
protected function OrderedDictionary (
	info : SerializationInfo, 
	context : StreamingContext
Not applicable.



A SerializationInfo object containing the information required to serialize the OrderedDictionary collection.


A StreamingContext object containing the source and destination of the serialized stream associated with the OrderedDictionary.

The comparer determines whether two keys are equal. Every key in a OrderedDictionary collection must be unique. The default comparer is the key's implementation of Object.Equals.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions