MessagePackSerializerGetT Method (SerializationContext, Object) |
Namespace: MsgPack.SerializationAssembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax public static MessagePackSerializer<T> Get<T>(
SerializationContext context,
Object providerParameter
)
Public Shared Function Get(Of T) (
context As SerializationContext,
providerParameter As Object
) As MessagePackSerializer(Of T)
public:
generic<typename T>
static MessagePackSerializer<T>^ Get(
SerializationContext^ context,
Object^ providerParameter
)
static member Get :
context : SerializationContext *
providerParameter : Object -> MessagePackSerializer<'T>
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:
MessagePackSerializerTMessagePackSerializerT.
If there is exiting one, returns it.
Else the new instance will be created.
Exceptions Remarks
This method simply invokes GetSerializerT(Object), so see the method description for details.
Currently, only following provider parameters are supported.
Note |
---|
null is valid value for providerParameter and it indeicates default behavior of parameter. |
See Also