BinarySerializerDeserializeFromStream(Stream, Type) Method
Namespace: KGySoft.Serialization.BinaryAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public static Object? DeserializeFromStream(
Stream stream,
params Type[]? expectedCustomTypes
)
Public Shared Function DeserializeFromStream (
stream As Stream,
ParamArray expectedCustomTypes As Type()
) As Object
public:
static Object^ DeserializeFromStream(
Stream^ stream,
... array<Type^>^ expectedCustomTypes
)
static member DeserializeFromStream :
stream : Stream *
expectedCustomTypes : Type[] -> Object
- stream Stream
- The Stream containing the serialized data. The stream must support reading and will remain open after deserialization.
- expectedCustomTypes Type
- 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 is optional.
ObjectThe deserialized object.