UnpackerReadSubtree Method |
Starts unpacking of current subtree.
Namespace: MsgPackAssembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax public Unpacker ReadSubtree()
Public Function ReadSubtree As Unpacker
public:
Unpacker^ ReadSubtree()
member ReadSubtree : unit -> Unpacker
Return Value
Type:
UnpackerUnpacker to unpack current subtree.
This will not be
null.
Exceptions Exception | Condition |
---|
InvalidOperationException |
This unpacker is not positioned on the header of array nor map.
Or this unpacker already returned Unpacker for subtree and it has not been closed yet.
|
Remarks
While subtree unpacker is used, this instance will be 'locked' (called 'subtree' mode) and be unavailable.
When you finish to unpack subtree, you must invoke
Dispose,
or you faces
InvalidOperationException when you use the parent instance.
Subtree unpacker can only unpack subtree, so you can handle collection deserialization easily.
See Also