BinarySerializationFormatterDeserialize(Byte, Int32, Type) Method

Deserializes the specified part of a byte array into an object.
See the Remarks section of the DeserializeT(Byte, Int32, Type) overload for details.

Definition

Namespace: KGySoft.Serialization.Binary
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
C#
public Object? Deserialize(
	byte[] rawData,
	int offset,
	params Type[]? expectedCustomTypes
)

Parameters

rawData  Byte
Contains the raw data representation of the object to deserialize.
offset  Int32
Points to the starting position of the object data in rawData.
expectedCustomTypes  Type
The types that are expected to present in rawData by name. If SafeMode is not enabled in Options or rawData does not contain any types by name, then this parameter is optional.

Return Value

Object
The deserialized object.

See Also