PackerUnpackerExtensionsPackObject Method (Packer, Object) |
Packs specified value with the default context.
Namespace: MsgPackAssembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax public static Packer PackObject(
this Packer source,
Object value
)
<ExtensionAttribute>
Public Shared Function PackObject (
source As Packer,
value As Object
) As Packer
public:
[ExtensionAttribute]
static Packer^ PackObject(
Packer^ source,
Object^ value
)
[<ExtensionAttribute>]
static member PackObject :
source : Packer *
value : Object -> Packer
Parameters
- source
- Type: MsgPackPacker
The Packer. - value
- Type: SystemObject
The value to be serialized.
Return Value
Type:
Packersource.
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 See Also