KGy SOFT

BinarySerializationFormatterDeserializeByReader Method

KGy SOFT Core Libraries Help
Deserializes data beginning at current position of given reader.

Namespace:  KGySoft.Serialization.Binary
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 6.0.0
Syntax

public Object? DeserializeByReader(
	BinaryReader reader
)

Parameters

reader
Type: System.IOBinaryReader
The reader that will be used to deserialize data. The reader will remain opened after deserialization.

Return Value

Type: Object
The deserialized data.
Remarks

Note Note
If data was serialized by Serialize or SerializeToStream methods, then reader must use UTF-8 encoding to get correct result. If data was serialized by the SerializeByWriter method, then you must use the same encoding as there.
See Also

Reference