MessagePackObject Constructor (MessagePackObjectDictionary, Boolean) |
Namespace: MsgPackAssembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax public MessagePackObject(
MessagePackObjectDictionary value,
bool isImmutable
)
Public Sub New (
value As MessagePackObjectDictionary,
isImmutable As Boolean
)
public:
MessagePackObject(
MessagePackObjectDictionary^ value,
bool isImmutable
)
new :
value : MessagePackObjectDictionary *
isImmutable : bool -> MessagePackObject
Parameters
- value
- Type: MsgPackMessagePackObjectDictionary
The dictitonary to be copied or used.
- isImmutable
- Type: SystemBoolean
true if the value is immutable collection;
othereise, false.
Remarks
When the collection is truely immutable or dedicated, you can specify
true to the
isImmutable.
When
isImmutable is
true, this constructor does not copy its contents,
or copies its contents otherwise.
Note |
---|
Note that both of IReadOnlyDictionary and ReadOnlyDictionary is NOT immutable
because the modification to the underlying collection will be reflected to the read-only collection.
|
See Also