Click or drag to resize
MessagePackSerializerGet Method (Type, SerializationContext)
Gets existing or new IMessagePackSerializer instance with specified SerializationContext.

Namespace: MsgPack.Serialization
Assembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax
public static IMessagePackSingleObjectSerializer Get(
	Type targetType,
	SerializationContext context
)

Parameters

targetType
Type: SystemType
Target type.
context
Type: MsgPack.SerializationSerializationContext
SerializationContext to store known/created serializers.

Return Value

Type: IMessagePackSingleObjectSerializer
IMessagePackSingleObjectSerializer. If there is exiting one, returns it. Else the new instance will be created.
Exceptions
ExceptionCondition
ArgumentNullExceptiontargetType is null. Or, context is null.
Remarks

This method simply invokes GetSerializer(Type), so see the method description for details.

Although GetT(SerializationContext) is preferred, this method can be used from non-generic type or methods.

See Also