Click or drag to resize
PackerUnpackerExtensionsPackT Method (Packer, T)
Packs specified value with the default context.

Namespace: MsgPack
Assembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax
public static Packer Pack<T>(
	this Packer source,
	T value
)

Parameters

source
Type: MsgPackPacker
The Packer.
value
Type: T
The value to be serialized.

Type Parameters

T
The type of the value.

Return Value

Type: Packer
source.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Packer. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptionsource is null.
SerializationException Cannot serialize value.
See Also