Click or drag to resize
MessagePackKnownTupleItemTypeAttribute Class
Marks that the runtime type of specified item of the tuple should be encoded with closed type codes for polymorphism.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    MsgPack.SerializationMessagePackKnownTupleItemTypeAttribute

Namespace: MsgPack.Serialization
Assembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax
[AttributeUsageAttribute(AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = true)]
public sealed class MessagePackKnownTupleItemTypeAttribute : Attribute

The MessagePackKnownTupleItemTypeAttribute type exposes the following members.

Constructors
  NameDescription
Public methodMessagePackKnownTupleItemTypeAttribute
Initializes a new instance of the MessagePackKnownTupleItemTypeAttribute class.
Top
Properties
  NameDescription
Public propertyBindingType
Gets the type of the binding Type for TypeCode.
Public propertyItemNumber
Gets the target tuple item's number.
Public propertyTypeCode
Gets a type code to be bound.
Top
Remarks
When you apply this attribute to a member, the item of tuple, will be serialized as 2 element array as [ <type-code>, <actual-value (array or map)>] format where the type-code is utf-8 encoded string representing type in your application (system) context. When you interop with other launages, the deserializer will be able to deserialize object which is actual type when serialized with interoperability.
Note Note
You must use one-to-one relationship between type-code and the type.
See Also