BinarySerializerDeserializeFromStream(Stream, BinarySerializationOptions) Method

Deserializes the content of the specified serialization stream from its current position into an object. If SafeMode is enabled in options and stream contains natively not supported types by name, then you should use the other overloads to specify the expected types.
See the Remarks section of the DeserializeFromStreamT(Stream, BinarySerializationOptions, Type) overload for details.

Definition

Namespace: KGySoft.Serialization.Binary
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public static Object? DeserializeFromStream(
	Stream stream,
	BinarySerializationOptions options = BinarySerializationOptions.SafeMode
)

Parameters

stream  Stream
The Stream containing the serialized data. The stream must support reading and will remain open after deserialization.
options  BinarySerializationOptions  (Optional)
Options of the deserialization. This parameter is optional.
Default value: SafeMode.

Return Value

Object
The deserialized data.

See Also