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

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
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
[ObsoleteAttribute("This API is not used at generated serializers in current release, so this API will be removed future.")]
public static void UnpackCollectionTo<T, TDiscarded>(
	Unpacker unpacker,
	MessagePackSerializer<T> serializer,
	IEnumerable<T> collection,
	Func<T, TDiscarded> 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: SystemFuncT, TDiscarded
The delegate which contains the instance method of the collection. The parameter is unpacked object.

Type Parameters

T
The type of elements.
TDiscarded
The return type of Add method.
Exceptions
ExceptionCondition
SerializationException Failed to deserialization.
See Also