Click or drag to resize
IMessagePackSerializerPackTo Method
Serialize specified object with specified Packer.

Namespace: MsgPack.Serialization
Assembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax
void PackTo(
	Packer packer,
	Object objectTree
)

Parameters

packer
Type: MsgPackPacker
Packer which packs values in objectTree.
objectTree
Type: SystemObject
Object to be serialized.
Exceptions
ExceptionCondition
ArgumentNullExceptionpacker is null.
ArgumentExceptionobjectTree is not compatible for this serializer.
SerializationException The type of objectTree is not serializable etc.
See Also