Click or drag to resize
Accord.NET (logo)

SerializerLoadT Method (Stream, BinaryFormatter, SerializerCompression)

Loads a model from a stream.

Namespace:  Accord.IO
Assembly:  Accord (in Accord.dll) Version: 3.5.0
Syntax
public static T Load<T>(
	Stream stream,
	BinaryFormatter formatter,
	SerializerCompression compression = SerializerCompression.None
)
Request Example View Source

Parameters

stream
Type: System.IOStream
The stream from which to deserialize the object graph.
formatter
Type: System.Runtime.Serialization.Formatters.BinaryBinaryFormatter
The binary formatter.
compression (Optional)
Type: Accord.IOSerializerCompression
The type of compression to use. Default is None.

Type Parameters

T
The type of the model to be loaded.

Return Value

Type: T
The deserialized object.
See Also