Click or drag to resize
MessagePackSerializerGet Method (Type, Object)
Gets existing or new IMessagePackSerializer instance with default context (Default).

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

Parameters

targetType
Type: SystemType
Target type.
providerParameter
Type: SystemObject
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.
Remarks

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

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

See Also