Click or drag to resize
MessagePackSerializerExtensionsUnpack Method
Deserialize object from the Stream.

Namespace: MsgPack.Serialization
Assembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax
public static Object Unpack(
	this IMessagePackSerializer source,
	Stream stream
)

Parameters

source
Type: MsgPack.SerializationIMessagePackSerializer
IMessagePackSerializer object.
stream
Type: System.IOStream
Source Stream.

Return Value

Type: Object
Deserialized object.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IMessagePackSerializer. 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 stream is null.
SerializationException Failed to deserialize from stream.
See Also