Click or drag to resize
DictionaryMessagePackSerializerBaseTDictionary, TKey, TValue Class
Provides common features for generic dictionary serializers.
Inheritance Hierarchy
SystemObject
  MsgPack.SerializationMessagePackSerializerTDictionary
    MsgPack.Serialization.CollectionSerializersDictionaryMessagePackSerializerBaseTDictionary, TKey, TValue
      MsgPack.Serialization.CollectionSerializersDictionaryMessagePackSerializerTDictionary, TKey, TValue

Namespace: MsgPack.Serialization.CollectionSerializers
Assembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax
public abstract class DictionaryMessagePackSerializerBase<TDictionary, TKey, TValue> : MessagePackSerializer<TDictionary>, 
	ICollectionInstanceFactory
where TDictionary : Object, IEnumerable<KeyValuePair<TKey, TValue>>

Type Parameters

TDictionary
The type of the dictionary.
TKey
The type of the key of dictionary.
TValue
The type of the value of dictionary.

The DictionaryMessagePackSerializerBaseTDictionary, TKey, TValue type exposes the following members.

Constructors
  NameDescription
Protected methodDictionaryMessagePackSerializerBaseTDictionary, TKey, TValue
Initializes a new instance of the DictionaryMessagePackSerializerBaseTDictionary, TKey, TValue class.
Top
Properties
Methods
  NameDescription
Protected methodAddItem
When implemented by derive class, adds the deserialized item to the collection on TDictionary specific manner to implement UnpackToCore(Unpacker, TDictionary).
Protected methodCreateInstance
Creates a new collection instance with specified initial capacity.
Protected methodGetCount
When overridden in derived class, returns count of the dictionary.
Public methodPack
Serializes specified object to the Stream.
(Inherited from MessagePackSerializerT.)
Public methodPackSingleObject
Serializes specified object to the array of Byte.
(Inherited from MessagePackSerializerT.)
Public methodPackTo
Serializes specified object with specified Packer.
(Inherited from MessagePackSerializerT.)
Protected methodPackToCore
Serializes specified object with specified Packer.
(Overrides MessagePackSerializerTPackToCore(Packer, T).)
Public methodUnpack
Deserialize object from the Stream.
(Inherited from MessagePackSerializerT.)
Public methodUnpackFrom
Deserializes object with specified Unpacker.
(Inherited from MessagePackSerializerT.)
Protected methodUnpackFromCore
Deserializes object with specified Unpacker.
(Overrides MessagePackSerializerTUnpackFromCore(Unpacker).)
Protected methodUnpackNil
Unpacks the nil value.
(Inherited from MessagePackSerializerT.)
Public methodUnpackSingleObject
Deserializes a single object from the array of Byte which contains a serialized object.
(Inherited from MessagePackSerializerT.)
Public methodUnpackTo
Deserializes collection items with specified Unpacker and stores them to collection.
(Inherited from MessagePackSerializerT.)
Protected methodUnpackToCore
Deserializes collection items with specified Unpacker and stores them to collection.
(Overrides MessagePackSerializerTUnpackToCore(Unpacker, T).)
Top
Remarks
This class provides framework to implement variable collection serializer, and this type seals some virtual members to maximize future backward compatibility. If you cannot use this class, you can implement your own serializer which inherits MessagePackSerializerT and implements ICollectionInstanceFactory.
See Also