Click or drag to resize
MessagePackSerializerCreate Method (Type, SerializationContext)

Note: This API is now obsolete.

Creates new IMessagePackSerializer instance with specified SerializationContext.

Namespace: MsgPack.Serialization
Assembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax
[ObsoleteAttribute("Use Get(Type,SerializationContext) instead.")]
public static IMessagePackSingleObjectSerializer Create(
	Type targetType,
	SerializationContext context
)

Parameters

targetType
Type: SystemType
Target type.
context
Type: MsgPack.SerializationSerializationContext
SerializationContext to store known/created serializers.

Return Value

Type: IMessagePackSingleObjectSerializer
New IMessagePackSingleObjectSerializer instance to serialize/deserialize the object tree which the top is targetType.
Exceptions
ExceptionCondition
ArgumentNullExceptiontargetType is null. Or, context is null.
Remarks
See Also