SerializationContextGetSerializerT Method (Object) |
Namespace: MsgPack.SerializationAssembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax public MessagePackSerializer<T> GetSerializer<T>(
Object providerParameter
)
Public Function GetSerializer(Of T) (
providerParameter As Object
) As MessagePackSerializer(Of T)
public:
generic<typename T>
MessagePackSerializer<T>^ GetSerializer(
Object^ providerParameter
)
member GetSerializer :
providerParameter : Object -> MessagePackSerializer<'T>
Parameters
- providerParameter
- Type: SystemObject
A provider specific parameter. See remarks section for details.
Type Parameters
- T
- Type of serialization/deserialization target.
Return Value
Type:
MessagePackSerializerTMessagePackSerializerT.
If there is exiting one, returns it.
Else the new instance will be created.
Remarks
This method automatically register new instance via RegisterT(MessagePackSerializerT).
Currently, only following provider parameters are supported.
Note |
---|
null is valid value for providerParameter and it indeicates default behavior of parameter. |
See Also