SerializationContextGetSerializer Method (Type, Object) |
Gets the serializer for the specified
Type.
Namespace: MsgPack.SerializationAssembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax public IMessagePackSingleObjectSerializer GetSerializer(
Type targetType,
Object providerParameter
)
Public Function GetSerializer (
targetType As Type,
providerParameter As Object
) As IMessagePackSingleObjectSerializer
public:
IMessagePackSingleObjectSerializer^ GetSerializer(
Type^ targetType,
Object^ providerParameter
)
member GetSerializer :
targetType : Type *
providerParameter : Object -> IMessagePackSingleObjectSerializer
Parameters
- targetType
- Type: SystemType
Type of the serialization target. - providerParameter
- Type: SystemObject
A provider specific parameter. See remarks section of GetSerializerT(Object) for details.
Return Value
Type:
IMessagePackSingleObjectSerializerIMessagePackSingleObjectSerializer.
If there is exiting one, returns it.
Else the new instance will be created.
Exceptions Remarks See Also