SerializationContextGetSerializer Method (Type) |
Gets the serializer for the specified
Type.
Namespace: MsgPack.SerializationAssembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax public IMessagePackSingleObjectSerializer GetSerializer(
Type targetType
)
Public Function GetSerializer (
targetType As Type
) As IMessagePackSingleObjectSerializer
public:
IMessagePackSingleObjectSerializer^ GetSerializer(
Type^ targetType
)
member GetSerializer :
targetType : Type -> IMessagePackSingleObjectSerializer
Parameters
- targetType
- Type: SystemType
Type of the serialization target.
Return Value
Type:
IMessagePackSingleObjectSerializerIMessagePackSingleObjectSerializer.
If there is exiting one, returns it.
Else the new instance will be created.
Exceptions Remarks
Although
GetSerializerT is preferred,
this method can be used from non-generic type or methods.
See Also