Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HashSet<T> Constructor (SerializationInfo^, StreamingContext)

 

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
)

Parameters

info
Type: System.Runtime.Serialization::SerializationInfo^

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

context
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
Show:
© 2017 Microsoft