BinarySerializerDeserializeFromStream(Stream, BinarySerializationOptions, IEnumerableType) Method
Namespace: KGySoft.Serialization.BinaryAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public static Object? DeserializeFromStream(
Stream stream,
BinarySerializationOptions options,
IEnumerable<Type>? expectedCustomTypes
)
Public Shared Function DeserializeFromStream (
stream As Stream,
options As BinarySerializationOptions,
expectedCustomTypes As IEnumerable(Of Type)
) As Object
public:
static Object^ DeserializeFromStream(
Stream^ stream,
BinarySerializationOptions options,
IEnumerable<Type^>^ expectedCustomTypes
)
static member DeserializeFromStream :
stream : Stream *
options : BinarySerializationOptions *
expectedCustomTypes : IEnumerable<Type> -> Object
- stream Stream
- The Stream containing the serialized data. The stream must support reading and will remain open after deserialization.
- options BinarySerializationOptions
- Options of the deserialization.
- expectedCustomTypes IEnumerableType
- The types that are expected to present in the serialization stream by name.
If SafeMode is not enabled in options
or stream does not contain any types by name, then this parameter can be .
ObjectThe deserialized object.