BinarySerializerDeserializeT(Byte, Int32, BinarySerializationOptions, IEnumerableType) Method
Namespace: KGySoft.Serialization.BinaryAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public static T Deserialize<T>(
byte[] rawData,
int offset,
BinarySerializationOptions options,
IEnumerable<Type>? expectedCustomTypes
)
Public Shared Function Deserialize(Of T) (
rawData As Byte(),
offset As Integer,
options As BinarySerializationOptions,
expectedCustomTypes As IEnumerable(Of Type)
) As T
public:
generic<typename T>
static T Deserialize(
array<unsigned char>^ rawData,
int offset,
BinarySerializationOptions options,
IEnumerable<Type^>^ expectedCustomTypes
)
static member Deserialize :
rawData : byte[] *
offset : int *
options : BinarySerializationOptions *
expectedCustomTypes : IEnumerable<Type> -> 'T
- 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.
- options BinarySerializationOptions
- Options of the deserialization.
- 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 .
- T
- The expected type of the result.
TThe deserialized instance of
T.