PackerUnpackerExtensionsPackArrayT Method (Packer, IEnumerableT) |
Packs specified collection with the default context.
Namespace: MsgPackAssembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax public static Packer PackArray<T>(
this Packer source,
IEnumerable<T> collection
)
<ExtensionAttribute>
Public Shared Function PackArray(Of T) (
source As Packer,
collection As IEnumerable(Of T)
) As Packer
public:
[ExtensionAttribute]
generic<typename T>
static Packer^ PackArray(
Packer^ source,
IEnumerable<T>^ collection
)
[<ExtensionAttribute>]
static member PackArray :
source : Packer *
collection : IEnumerable<'T> -> Packer
Parameters
- source
- Type: MsgPackPacker
The Packer. - collection
- Type: System.Collections.GenericIEnumerableT
The collection to be serialized.
Type Parameters
- T
- The type of items of the collection.
Return Value
Type:
Packersource.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Packer. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions See Also