UnpackHelpersUnpackCollectionToT, TDiscarded Method (Unpacker, MessagePackSerializerT, IEnumerableT, FuncT, TDiscarded) |
Note: This API is now obsolete.
Namespace: MsgPack.SerializationAssembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax [EditorBrowsableAttribute(EditorBrowsableState.Never)]
[ObsoleteAttribute("This API is not used at generated serializers in current release, so this API will be removed future.")]
public static void UnpackCollectionTo<T, TDiscarded>(
Unpacker unpacker,
MessagePackSerializer<T> serializer,
IEnumerable<T> collection,
Func<T, TDiscarded> addition
)
<EditorBrowsableAttribute(EditorBrowsableState.Never)>
<ObsoleteAttribute("This API is not used at generated serializers in current release, so this API will be removed future.")>
Public Shared Sub UnpackCollectionTo(Of T, TDiscarded) (
unpacker As Unpacker,
serializer As MessagePackSerializer(Of T),
collection As IEnumerable(Of T),
addition As Func(Of T, TDiscarded)
)
public:
[EditorBrowsableAttribute(EditorBrowsableState::Never)]
[ObsoleteAttribute(L"This API is not used at generated serializers in current release, so this API will be removed future.")]
generic<typename T, typename TDiscarded>
static void UnpackCollectionTo(
Unpacker^ unpacker,
MessagePackSerializer<T>^ serializer,
IEnumerable<T>^ collection,
Func<T, TDiscarded>^ addition
)
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
[<ObsoleteAttribute("This API is not used at generated serializers in current release, so this API will be removed future.")>]
static member UnpackCollectionTo :
unpacker : Unpacker *
serializer : MessagePackSerializer<'T> *
collection : IEnumerable<'T> *
addition : Func<'T, 'TDiscarded> -> 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: SystemFuncT, TDiscarded
The delegate which contains the instance method of the collection. The parameter is unpacked object.
Type Parameters
- T
- The type of elements.
- TDiscarded
- The return type of Add method.
Exceptions See Also