MsgPack.Serialization.ResolveSerializerEventArgs Class Reference

Represents event information for SerializationContext.ResolveSerializer event. More...

Inherits EventArgs.

Public Member Functions

void SetSerializer< T > (MessagePackSerializer< T > foundSerializer)
 Sets the serializer instance which can handle TargetType type instance correctly. More...
 
void SetSerializer (Type type, MessagePackSerializer foundSerializer)
 

Properties

SerializationContext Context [get]
 Gets the SerializationContext which raises this event. More...
 
Type TargetType [get]
 Gets the target type which is getting serializer. More...
 
PolymorphismSchema PolymorphismSchema [get]
 Gets the PolymorphismSchema which represents polymorphism information for the current member. More...
 

Detailed Description

Member Function Documentation

◆ SetSerializer< T >()

void MsgPack.Serialization.ResolveSerializerEventArgs.SetSerializer< T > ( MessagePackSerializer< T >  foundSerializer)

Sets the serializer instance which can handle TargetType type instance correctly.

Parameters
foundSerializerThe serializer instance which can handle TargetType type instance correctly; null when you cannot provide appropriate serializer instance.

If you decide to delegate serializer generation to MessagePack for CLI infrastructure, do not call this method in your event handler or specify null for foundSerializer .

Property Documentation

◆ Context

SerializationContext MsgPack.Serialization.ResolveSerializerEventArgs.Context
get

Gets the SerializationContext which raises this event.

The SerializationContext which raises this event. This value will not be null.

A sender parameter of the event handler has same instance for this.

◆ PolymorphismSchema

PolymorphismSchema MsgPack.Serialization.ResolveSerializerEventArgs.PolymorphismSchema
get

Gets the PolymorphismSchema which represents polymorphism information for the current member.

The PolymorphismSchema which represents polymorphism information for the current member. This value will not be null.

◆ TargetType

Type MsgPack.Serialization.ResolveSerializerEventArgs.TargetType
get

Gets the target type which is getting serializer.

The target type which is getting serializer. This value will not be null.


The documentation for this class was generated from the following file:
  • MsgPackSources/Serialization/ResolveSerializerEventArgs.cs