ResolveSerializerEventArgsSetSerializerT Method |
Sets the serializer instance which can handle
TargetType type instance correctly.
Namespace: MsgPack.SerializationAssembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax public void SetSerializer<T>(
MessagePackSerializer<T> foundSerializer
)
Public Sub SetSerializer(Of T) (
foundSerializer As MessagePackSerializer(Of T)
)
public:
generic<typename T>
void SetSerializer(
MessagePackSerializer<T>^ foundSerializer
)
member SetSerializer :
foundSerializer : MessagePackSerializer<'T> -> unit
Parameters
- foundSerializer
- Type: MsgPack.SerializationMessagePackSerializerT
The serializer instance which can handle TargetType type instance correctly; null when you cannot provide appropriate serializer instance.
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:MsgPack.Serialization.ResolveSerializerEventArgs.SetSerializer``1(MsgPack.Serialization.MessagePackSerializer{``0})"]
Remarks
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.
See Also