HashSet<T> Constructor (SerializationInfo, StreamingContext)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the HashSet<T> class with serialized data.

Namespace:   System.Collections.Generic
Assembly:  System.Core (in System.Core.dll)

protected HashSet(
	SerializationInfo info,
	StreamingContext context


Type: System.Runtime.Serialization.SerializationInfo

A SerializationInfo object that contains the information required to serialize the HashSet<T> object.

Type: System.Runtime.Serialization.StreamingContext

A StreamingContext structure that contains the source and destination of the serialized stream associated with the HashSet<T> object.

This constructor is called during deserialization to reconstitute an object that is transmitted over a stream. For more information, see XML and SOAP Serialization.

.NET Framework
Available since 3.5
Return to top