Click or drag to resize
MessagePackSerializerGetT Method (SerializationContext, Object)

Namespace: MsgPack.Serialization
Assembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax
public static MessagePackSerializer<T> Get<T>(
	SerializationContext context,
	Object providerParameter
)

Parameters

context
Type: MsgPack.SerializationSerializationContext
SerializationContext to store known/created serializers.
providerParameter
Type: SystemObject
A provider specific parameter. See remarks section for details.

Type Parameters

T
Target type.

Return Value

Type: MessagePackSerializerT
MessagePackSerializerT. If there is exiting one, returns it. Else the new instance will be created.
Exceptions
ExceptionCondition
ArgumentNullExceptioncontext is null.
Remarks

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

Currently, only following provider parameters are supported.

Note Note
null is valid value for providerParameter and it indeicates default behavior of parameter.

See Also