MsgPack.Serialization.CollectionSerializers.NonGenericEnumerableMessagePackSerializer< TCollection > Class Template Reference

Provides common implementation of NonGenericEnumerableMessagePackSerializerBase<TCollection> for collection types which implement IEnumerable. More...

Inherits MsgPack.Serialization.CollectionSerializers.NonGenericEnumerableMessagePackSerializerBase< TCollection >.

Inherited by MsgPack.Serialization.DefaultSerializers.AbstractNonGenericEnumerableMessagePackSerializer< TCollection >, and MsgPack.Serialization.ReflectionSerializers.ReflectionNonGenericEnumerableMessagePackSerializer< TCollection >.

Protected Member Functions

 NonGenericEnumerableMessagePackSerializer (SerializationContext ownerContext, PolymorphismSchema schema)
 Initializes a new instance of the NonGenericCollectionMessagePackSerializer<TCollection> class. More...
 
 NonGenericEnumerableMessagePackSerializer (SerializationContext ownerContext, PolymorphismSchema schema, SerializerCapabilities capabilities)
 Initializes a new instance of the NonGenericCollectionMessagePackSerializer<TCollection> class. More...
 
- Protected Member Functions inherited from MsgPack.Serialization.CollectionSerializers.NonGenericEnumerableMessagePackSerializerBase< TCollection >
 NonGenericEnumerableMessagePackSerializerBase (SerializationContext ownerContext, PolymorphismSchema schema)
 Initializes a new instance of the NonGenericEnumerableMessagePackSerializerBase<TCollection> class. More...
 
 NonGenericEnumerableMessagePackSerializerBase (SerializationContext ownerContext, PolymorphismSchema schema, SerializerCapabilities capabilities)
 Initializes a new instance of the NonGenericEnumerableMessagePackSerializerBase<TCollection> class. More...
 
abstract TCollection CreateInstance (int initialCapacity)
 Creates a new collection instance with specified initial capacity. More...
 
virtual void AddItem (TCollection collection, object item)
 When implemented by derive class, adds the deserialized item to the collection on TCollection specific manner to implement UnpackToCore(Unpacker,TCollection). More...
 

Additional Inherited Members

Detailed Description

Provides common implementation of NonGenericEnumerableMessagePackSerializerBase<TCollection> for collection types which implement IEnumerable.

Template Parameters
TCollectionThe type of the collection.
Type Constraints
TCollection :IEnumerable 

Constructor & Destructor Documentation

◆ NonGenericEnumerableMessagePackSerializer() [1/2]

Initializes a new instance of the NonGenericCollectionMessagePackSerializer<TCollection> 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.

◆ NonGenericEnumerableMessagePackSerializer() [2/2]

Initializes a new instance of the NonGenericCollectionMessagePackSerializer<TCollection> 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.

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