BinarySerializationFormatterDeserializeT(Byte, IEnumerableType) Method

Deserializes a byte array into an instance of T.
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: 10.0.0
C#
public T Deserialize<T>(
	byte[] rawData,
	IEnumerable<Type>? expectedCustomTypes
)

Parameters

rawData  Byte
Contains the raw data representation of the object to deserialize.
expectedCustomTypes  IEnumerableType
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 can be .

Type Parameters

T
The expected type of the result.

Return Value

T
The deserialized instance of T.

See Also