BinarySerializerDeserializeByReader(BinaryReader, BinarySerializationOptions, Type) Method
Namespace: KGySoft.Serialization.BinaryAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public static Object? DeserializeByReader(
BinaryReader reader,
BinarySerializationOptions options,
params Type[]? expectedCustomTypes
)
Public Shared Function DeserializeByReader (
reader As BinaryReader,
options As BinarySerializationOptions,
ParamArray expectedCustomTypes As Type()
) As Object
public:
static Object^ DeserializeByReader(
BinaryReader^ reader,
BinarySerializationOptions options,
... array<Type^>^ expectedCustomTypes
)
static member DeserializeByReader :
reader : BinaryReader *
options : BinarySerializationOptions *
expectedCustomTypes : Type[] -> Object
- reader BinaryReader
- The reader that wraps the stream containing the serialized data. The reader will remain open after deserialization.
- options BinarySerializationOptions
- Options of the deserialization.
- expectedCustomTypes Type
- The types that are expected to present in the serialization stream by name.
If SafeMode is not enabled in options
or the stream does not contain any types by name, then this parameter is optional.
ObjectThe deserialized object.