Click or drag to resize
MessagePackSerializerT Class
Defines base contract for object serialization.
Inheritance Hierarchy
SystemObject
  MsgPack.SerializationMessagePackSerializerT
    MsgPack.Serialization.CollectionSerializersDictionaryMessagePackSerializerBaseTDictionary, TKey, TValue
    MsgPack.Serialization.CollectionSerializersEnumerableMessagePackSerializerBaseTCollection, TItem
    MsgPack.Serialization.CollectionSerializersNonGenericDictionaryMessagePackSerializerTDictionary
    MsgPack.Serialization.CollectionSerializersNonGenericEnumerableMessagePackSerializerBaseTCollection
    MsgPack.SerializationEnumMessagePackSerializerTEnum

Namespace: MsgPack.Serialization
Assembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax
public abstract class MessagePackSerializer<T> : IMessagePackSingleObjectSerializer, 
	IMessagePackSerializer

Type Parameters

T
Target type.

The MessagePackSerializerT type exposes the following members.

Constructors
  NameDescription
Protected methodMessagePackSerializerT Obsolete.
Initializes a new instance of the MessagePackSerializerT class with Classic.
Protected methodMessagePackSerializerT(PackerCompatibilityOptions) Obsolete.
Initializes a new instance of the MessagePackSerializerT class with default context..
Protected methodMessagePackSerializerT(SerializationContext)
Initializes a new instance of the MessagePackSerializerT class.
Protected methodMessagePackSerializerT(SerializationContext, PackerCompatibilityOptions)
Initializes a new instance of the MessagePackSerializerT class with explicitly specified compatibility option.
Top
Properties
  NameDescription
Protected propertyOwnerContext
Gets a SerializationContext which owns this serializer.
Protected propertyPackerCompatibilityOptions
Gets the packer compatibility options for this instance.
Top
Methods
  NameDescription
Public methodPack
Serializes specified object to the Stream.
Public methodPackSingleObject
Serializes specified object to the array of Byte.
Public methodPackTo
Serializes specified object with specified Packer.
Protected methodPackToCore
Serializes specified object with specified Packer.
Public methodUnpack
Deserialize object from the Stream.
Public methodUnpackFrom
Deserializes object with specified Unpacker.
Protected methodUnpackFromCore
Deserializes object with specified Unpacker.
Protected methodUnpackNil
Unpacks the nil value.
Public methodUnpackSingleObject
Deserializes a single object from the array of Byte which contains a serialized object.
Public methodUnpackTo
Deserializes collection items with specified Unpacker and stores them to collection.
Protected methodUnpackToCore
Deserializes collection items with specified Unpacker and stores them to collection.
Top
Extension Methods
  NameDescription
Public Extension MethodPack(Stream, Object)Overloaded.
Serializes specified object to the Stream with default PackerCompatibilityOptions.
(Defined by MessagePackSerializerExtensions.)
Public Extension MethodPack(Stream, Object, PackerCompatibilityOptions)Overloaded.
Serializes specified object to the Stream.
(Defined by MessagePackSerializerExtensions.)
Public Extension MethodUnpack
Deserialize object from the Stream.
(Defined by MessagePackSerializerExtensions.)
Top
Remarks

This class implements strongly typed serialization and deserialization.

When the underlying stream does not contain strongly typed or contains dynamically typed objects, you should use Unpacker directly and take advantage of MessagePackObject.

See Also