MessagePackSerializerExtensionsPack Method (IMessagePackSerializer, Stream, Object) |
Namespace: MsgPack.SerializationAssembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax public static void Pack(
this IMessagePackSerializer source,
Stream stream,
Object objectTree
)
<ExtensionAttribute>
Public Shared Sub Pack (
source As IMessagePackSerializer,
stream As Stream,
objectTree As Object
)
public:
[ExtensionAttribute]
static void Pack(
IMessagePackSerializer^ source,
Stream^ stream,
Object^ objectTree
)
[<ExtensionAttribute>]
static member Pack :
source : IMessagePackSerializer *
stream : Stream *
objectTree : Object -> unit
Parameters
- source
- Type: MsgPack.SerializationIMessagePackSerializer
IMessagePackSerializer object. - stream
- Type: System.IOStream
Destination Stream. - objectTree
- Type: SystemObject
Object to be serialized.
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 See Also