Click or drag to resize
UnpackHelpersUnpackMapToTKey, TValue Method (Unpacker, MessagePackSerializerTKey, MessagePackSerializerTValue, IDictionaryTKey, TValue)

Note: This API is now obsolete.

Unpacks the dictionary with the specified method as colletion of MessagePackObject.

Namespace: MsgPack.Serialization
Assembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax
[ObsoleteAttribute("This API is not used at generated serializers in current release, so this API will be removed future.")]
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public static void UnpackMapTo<TKey, TValue>(
	Unpacker unpacker,
	MessagePackSerializer<TKey> keySerializer,
	MessagePackSerializer<TValue> valueSerializer,
	IDictionary<TKey, TValue> dictionary
)

Parameters

unpacker
Type: MsgPackUnpacker
The unpacker to unpack the underlying stream.
keySerializer
Type: MsgPack.SerializationMessagePackSerializerTKey
The serializer to deserialize key elements.
valueSerializer
Type: MsgPack.SerializationMessagePackSerializerTValue
The serializer to deserialize value elements.
dictionary
Type: System.Collections.GenericIDictionaryTKey, TValue
The generic dictionary instance to be added unpacked elements.

Type Parameters

TKey
The type of keys.
TValue
The type of values.
Exceptions
ExceptionCondition
SerializationException Failed to deserialization.
See Also