System.Collections.Hashtable.GetObjectData Method

Implements the System.Runtime.Serialization.ISerializable interface and returns the data needed to serialize the Hashtable.

Syntax

public virtual void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)

Parameters

info
A System.Runtime.Serialization.SerializationInfo object containing the information required to serialize the Hashtable.
context
A System.Runtime.Serialization.StreamingContext object containing the source and destination of the serialized stream associated with the Hashtable.

Remarks

This method is an O(n) operation, where n is Hashtable.Count.

Requirements

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0