Click or drag to resize
EnumerableMessagePackSerializerBaseTCollection, TItem Class
Provides basic features for non-dictionary generic collection serializers.
Inheritance Hierarchy

Namespace: MsgPack.Serialization.CollectionSerializers
Assembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax
public abstract class EnumerableMessagePackSerializerBase<TCollection, TItem> : MessagePackSerializer<TCollection>, 
	ICollectionInstanceFactory
where TCollection : Object, IEnumerable<TItem>

Type Parameters

TCollection
The type of the collection.
TItem
The type of the item of the collection.

The EnumerableMessagePackSerializerBaseTCollection, TItem type exposes the following members.

Constructors
  NameDescription
Protected methodEnumerableMessagePackSerializerBaseTCollection, TItem
Initializes a new instance of the EnumerableMessagePackSerializerBaseTCollection, TItem class.
Top
Properties
Methods
  NameDescription
Protected methodAddItem
When implemented by derive class, adds the deserialized item to the collection on TCollection specific manner to implement UnpackToCore(Unpacker, TCollection).
Protected methodCreateInstance
Creates a new collection instance with specified initial capacity.
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.
(Inherited from MessagePackSerializerT.)
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.
(Inherited from MessagePackSerializerT.)
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