Click or drag to resize
MessagePackSerializer.Get Method (Type, SerializationContext, Object)
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,
	Object providerParameter
)

Parameters

targetType
Type: System.Type
Target type.
context
Type: MsgPack.Serialization.SerializationContext
SerializationContext to store known/created serializers.
providerParameter
Type: System.Object
A provider specific parameter. See remarks section for details.

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, Object), so see the method description for details.

Although Get< T> (SerializationContext, Object) is preferred, this method can be used from non-generic type or methods.

See Also