Udostępnij za pośrednictwem


Deserializer.DeserializeWithTypeInfo Method

Definition

This method implements MessagePack deserialization for Remote UI data and returns the type of the field being deserialized when the field is one of DataTypeCode or a nullable of one of such types.

protected (object? Value, Type? FieldType) DeserializeWithTypeInfo (ref MessagePack.MessagePackReader reader, MessagePack.MessagePackSerializerOptions options);
member this.DeserializeWithTypeInfo : MessagePackReader * MessagePack.MessagePackSerializerOptions -> ValueTuple<obj, Type>
Protected Function DeserializeWithTypeInfo (ByRef reader As MessagePackReader, options As MessagePackSerializerOptions) As ValueTuple(Of Object, Type)

Parameters

reader
MessagePack.MessagePackReader

MessagePack reader from which the data is read.

options
MessagePack.MessagePackSerializerOptions

MessagePack options to be used for deserialization.

Returns

The deserialized value and its type information.

A value of null is returned as type if the field is of a complex type (a type not listed in DataTypeCode).

In case of nullable fields of one of the types listed in DataTypeCode, the corresponding DataTypeCode is returned.

Exceptions

When the reader contains invalid data.

Applies to