BinarySerializerDeserializeT(Byte, Int32, Type) Method
Namespace: KGySoft.Serialization.BinaryAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public static T Deserialize<T>(
byte[] rawData,
int offset = 0,
params Type[]? expectedCustomTypes
)
Public Shared Function Deserialize(Of T) (
rawData As Byte(),
Optional offset As Integer = 0,
ParamArray expectedCustomTypes As Type()
) As T
public:
generic<typename T>
static T Deserialize(
array<unsigned char>^ rawData,
int offset = 0,
... array<Type^>^ expectedCustomTypes
)
static member Deserialize :
rawData : byte[] *
?offset : int *
expectedCustomTypes : Type[]
(* Defaults:
let _offset = defaultArg offset 0
*)
-> 'T
- rawData Byte
- Contains the raw data representation of the object to deserialize.
- offset Int32 (Optional)
- Points to the starting position of the object data in rawData. This parameter is optional.
Default value: 0. - expectedCustomTypes Type
- The types that are expected to present in rawData by name.
If rawData does not contain any types by name, then this parameter is optional.
- T
- The expected type of the result.
TThe deserialized instance of
T.