MsgPack.Serialization.CollectionSerializers.NonGenericListMessagePackSerializer< TList > Class Template Reference

Provides common implementation of NonGenericCollectionMessagePackSerializer<TCollection> for collection types which implement IList. More...

Inherits MsgPack.Serialization.CollectionSerializers.NonGenericCollectionMessagePackSerializer< TList >.

Inherited by MsgPack.Serialization.ReflectionSerializers.ReflectionNonGenericListMessagePackSerializer< TList >.

Protected Member Functions

 NonGenericListMessagePackSerializer (SerializationContext ownerContext, PolymorphismSchema schema)
 Initializes a new instance of the NonGenericListMessagePackSerializer<TList> class. More...
 
 NonGenericListMessagePackSerializer (SerializationContext ownerContext, PolymorphismSchema schema, SerializerCapabilities capabilities)
 Initializes a new instance of the NonGenericListMessagePackSerializer<TList> class. More...
 
override void AddItem (TList collection, object item)
 Adds the deserialized item to the collection on TList specific manner to implement MessagePackSerializer<TList>.UnpackToCore(Unpacker,TList). More...
 
- Protected Member Functions inherited from MsgPack.Serialization.CollectionSerializers.NonGenericCollectionMessagePackSerializer< TList >
 NonGenericCollectionMessagePackSerializer (SerializationContext ownerContext, PolymorphismSchema schema)
 Initializes a new instance of the NonGenericCollectionMessagePackSerializer<TCollection> class. More...
 
 NonGenericCollectionMessagePackSerializer (SerializationContext ownerContext, PolymorphismSchema schema, SerializerCapabilities capabilities)
 Initializes a new instance of the NonGenericCollectionMessagePackSerializer<TCollection> class. More...
 

Detailed Description

Provides common implementation of NonGenericCollectionMessagePackSerializer<TCollection> for collection types which implement IList.

Template Parameters
TListThe type of the collection.
Type Constraints
TList :IList 

Constructor & Destructor Documentation

◆ NonGenericListMessagePackSerializer() [1/2]

Initializes a new instance of the NonGenericListMessagePackSerializer<TList> class.

Parameters
ownerContextA SerializationContext which owns this serializer.
schemaThe schema for collection itself or its items for the member this instance will be used to. null will be considered as PolymorphismSchema.Default.
Exceptions
ArgumentNullExceptionownerContext is null.

◆ NonGenericListMessagePackSerializer() [2/2]

Initializes a new instance of the NonGenericListMessagePackSerializer<TList> class.

Parameters
ownerContextA SerializationContext which owns this serializer.
schemaThe schema for collection itself or its items for the member this instance will be used to. null will be considered as PolymorphismSchema.Default.
capabilitiesA serializer calability flags represents capabilities of this instance.
Exceptions
ArgumentNullExceptionownerContext is null.

Member Function Documentation

◆ AddItem()

override void MsgPack.Serialization.CollectionSerializers.NonGenericListMessagePackSerializer< TList >.AddItem ( TList  collection,
object  item 
)
protected

Adds the deserialized item to the collection on TList specific manner to implement MessagePackSerializer<TList>.UnpackToCore(Unpacker,TList).

Parameters
collectionThe collection to be added.
itemThe item to be added.

The documentation for this class was generated from the following file:
  • MsgPackSources/Serialization/CollectionSerializers/NonGenericListMessagePackSerializer`1.cs