Click or drag to resize
IMessagePackSerializerUnpackTo Method
Deserialize collection items with specified Unpacker and stores them to collection.

Namespace: MsgPack.Serialization
Assembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax
void UnpackTo(
	Unpacker unpacker,
	Object collection
)

Parameters

unpacker
Type: MsgPackUnpacker
Unpacker which unpacks values of resulting object tree.
collection
Type: SystemObject
Collection that the items to be stored.
Exceptions
ExceptionCondition
ArgumentNullExceptionunpacker is null. Or collection is null.
ArgumentExceptioncollection is not compatible for this serializer.
SerializationException Failed to deserialize object due to invalid unpacker state, stream content, or so.
MessageTypeException Failed to deserialize object due to invalid unpacker state, stream content, or so.
InvalidMessagePackStreamException Failed to deserialize object due to invalid unpacker state, stream content, or so.
NotSupportedException The type of collection is not serializable etc.
See Also