BinarySerializerDeserializeFromStream(Stream, IEnumerableType) Method

Deserializes the content of the specified serialization stream from its current position into an object using safe mode.
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,
	IEnumerable<Type>? expectedCustomTypes
)

Parameters

stream  Stream
The Stream containing the serialized data. The stream must support reading and will remain open after deserialization.
expectedCustomTypes  IEnumerableType
The types that are expected to present in the serialization stream by name. If stream does not contain any types by name, then this parameter can be .

Return Value

Object
The deserialized object.

See Also