Click or drag to resize
PackerUnpackerExtensionsUnpackT Method (Unpacker, SerializationContext)
Unpacks specified type value with the specified context.

Namespace: MsgPack
Assembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax
public static T Unpack<T>(
	this Unpacker source,
	SerializationContext context
)

Parameters

source
Type: MsgPackUnpacker
The Unpacker.
context
Type: MsgPack.SerializationSerializationContext
The SerializationContext holds shared serializers.

Type Parameters

T
The type of the value.

Return Value

Type: T
The deserialized value.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Unpacker. 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. Or context is null.
SerializationException Cannot deserialize T value.
See Also