PackerUnpackerExtensionsPackMapTKey, TValue Method (Packer, IDictionaryTKey, TValue) |
Packs specified dictionary with the default context.
Namespace: MsgPackAssembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax public static Packer PackMap<TKey, TValue>(
this Packer source,
IDictionary<TKey, TValue> dictionary
)
<ExtensionAttribute>
Public Shared Function PackMap(Of TKey, TValue) (
source As Packer,
dictionary As IDictionary(Of TKey, TValue)
) As Packer
public:
[ExtensionAttribute]
generic<typename TKey, typename TValue>
static Packer^ PackMap(
Packer^ source,
IDictionary<TKey, TValue>^ dictionary
)
[<ExtensionAttribute>]
static member PackMap :
source : Packer *
dictionary : IDictionary<'TKey, 'TValue> -> Packer
Parameters
- source
- Type: MsgPackPacker
The Packer. - dictionary
- Type: System.Collections.GenericIDictionaryTKey, TValue
The dictionary to be serialized.
Type Parameters
- TKey
- The type of keys of the dictionary.
- TValue
- The type of values of the dictionary.
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