Click or drag to resize
UnpackHelpersUnpackCollectionToT Method (Unpacker, MessagePackSerializerT, IEnumerableT, ActionT)

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 UnpackCollectionTo<T>(
	Unpacker unpacker,
	MessagePackSerializer<T> serializer,
	IEnumerable<T> collection,
	Action<T> addition
)

Parameters

unpacker
Type: MsgPackUnpacker
The unpacker to unpack the underlying stream.
serializer
Type: MsgPack.SerializationMessagePackSerializerT
The serializer to deserialize elements.
collection
Type: System.Collections.GenericIEnumerableT
The generic collection instance to be added unpacked elements.
addition
Type: SystemActionT
The delegate which contains the instance method of the collection. The parameter is unpacked object.

Type Parameters

T
The type of elements.
Exceptions
ExceptionCondition
SerializationException Failed to deserialization.
See Also