UnpackHelpersUnpackCollectionToT Method (Unpacker, MessagePackSerializerT, IEnumerableT, ActionT) |
Note: This API is now obsolete.
Namespace: MsgPack.SerializationAssembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax [ObsoleteAttribute("This API is not used at generated serializers in current release, so this API will be removed future.")]
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public static void UnpackCollectionTo<T>(
Unpacker unpacker,
MessagePackSerializer<T> serializer,
IEnumerable<T> collection,
Action<T> addition
)
<ObsoleteAttribute("This API is not used at generated serializers in current release, so this API will be removed future.")>
<EditorBrowsableAttribute(EditorBrowsableState.Never)>
Public Shared Sub UnpackCollectionTo(Of T) (
unpacker As Unpacker,
serializer As MessagePackSerializer(Of T),
collection As IEnumerable(Of T),
addition As Action(Of T)
)
public:
[ObsoleteAttribute(L"This API is not used at generated serializers in current release, so this API will be removed future.")]
[EditorBrowsableAttribute(EditorBrowsableState::Never)]
generic<typename T>
static void UnpackCollectionTo(
Unpacker^ unpacker,
MessagePackSerializer<T>^ serializer,
IEnumerable<T>^ collection,
Action<T>^ addition
)
[<ObsoleteAttribute("This API is not used at generated serializers in current release, so this API will be removed future.")>]
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
static member UnpackCollectionTo :
unpacker : Unpacker *
serializer : MessagePackSerializer<'T> *
collection : IEnumerable<'T> *
addition : Action<'T> -> unit
Parameters
- unpacker
- Type: MsgPackUnpacker
The unpacker to unpack the underlying stream. - serializer
- Type: MsgPack.SerializationMessagePackSerializerT
The serializer to deserialize elements. - collection
- Type: System.Collections.GenericIEnumerableT
The generic collection instance to be added unpacked elements. - addition
- Type: SystemActionT
The delegate which contains the instance method of the collection. The parameter is unpacked object.
Type Parameters
- T
- The type of elements.
Exceptions See Also