MessagePackObject Constructor (IListMessagePackObject, Boolean) |
Initializes a new instance wraps
IListT.
Namespace: MsgPackAssembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax public MessagePackObject(
IList<MessagePackObject> value,
bool isImmutable
)
Public Sub New (
value As IList(Of MessagePackObject),
isImmutable As Boolean
)
public:
MessagePackObject(
IList<MessagePackObject>^ value,
bool isImmutable
)
new :
value : IList<MessagePackObject> *
isImmutable : bool -> MessagePackObject
Parameters
- value
- Type: System.Collections.GenericIListMessagePackObject
The collection 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 IReadOnlyList and ReadOnlyCollectionT is NOT immutable
because the modification to the underlying collection will be reflected to the read-only collection.
|
See Also