Click or drag to resize
UnpackHelpersUnpackCollectionToTDiscarded Method (Unpacker, IEnumerable, FuncObject, TDiscarded)

Note: This API is now obsolete.

Unpacks the collection 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<TDiscarded>(
	Unpacker unpacker,
	IEnumerable collection,
	Func<Object, TDiscarded> addition
)

Parameters

unpacker
Type: MsgPackUnpacker
The unpacker to unpack the underlying stream.
collection
Type: System.CollectionsIEnumerable
The non-generic collection instance to be added unpacked elements.
addition
Type: SystemFuncObject, TDiscarded
The delegate which contains the instance method of the collection. The parameter is unpacked object.

Type Parameters

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