Click or drag to resize
PolymorphismSchemaForPolymorphicDictionary Method (Type, IDictionaryString, Type, PolymorphismSchema, PolymorphismSchema)
Creates a new instance of the PolymorphismSchema class for dictionary object which uses ext-type code mapping based polymorphism.

Namespace: MsgPack.Serialization
Assembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public static PolymorphismSchema ForPolymorphicDictionary(
	Type targetType,
	IDictionary<string, Type> codeTypeMapping,
	PolymorphismSchema keySchema,
	PolymorphismSchema valueSchema
)

Parameters

targetType
Type: SystemType
The type of the serialization target.
codeTypeMapping
Type: System.Collections.GenericIDictionaryString, Type
The code type mapping which maps between ext-type codes and .NET Types.
keySchema
Type: MsgPack.SerializationPolymorphismSchema
The schema for dictionary keys of the serialization target dictionary.
valueSchema
Type: MsgPack.SerializationPolymorphismSchema
The schema for dictionary values of the serialization target dictionary.

Return Value

Type: PolymorphismSchema
A new instance of the PolymorphismSchema class for dictionary object which uses ext-type code mapping based polymorphism.
Exceptions
ExceptionCondition
ArgumentNullExceptiontargetType is null.
See Also