BagMap - Constructor - Deserialize

public BagMap(SerializationInfo SI, StreamingContext SC)

This constructor creates a map via deserialization.


SerializationInfo SI

A serialization information structure.

StreamingContext SC

A stream context information structure.


The key comparer for the new map is restored from the previously saved map. The value equality comparer is also restored.

This constructor obtains the key value pairs provided by the serialization information structure. The map is loaded with the provided pairs.