PolymorphismSchemaForPolymorphicDictionary Method (Type, PolymorphismSchema, PolymorphismSchema) |
Creates a new instance of the
PolymorphismSchema class for dictionary object which uses type embedding based polymorphism.
Namespace: MsgPack.SerializationAssembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax [EditorBrowsableAttribute(EditorBrowsableState.Never)]
public static PolymorphismSchema ForPolymorphicDictionary(
Type targetType,
PolymorphismSchema keySchema,
PolymorphismSchema valueSchema
)
<EditorBrowsableAttribute(EditorBrowsableState.Never)>
Public Shared Function ForPolymorphicDictionary (
targetType As Type,
keySchema As PolymorphismSchema,
valueSchema As PolymorphismSchema
) As PolymorphismSchema
public:
[EditorBrowsableAttribute(EditorBrowsableState::Never)]
static PolymorphismSchema^ ForPolymorphicDictionary(
Type^ targetType,
PolymorphismSchema^ keySchema,
PolymorphismSchema^ valueSchema
)
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
static member ForPolymorphicDictionary :
targetType : Type *
keySchema : PolymorphismSchema *
valueSchema : PolymorphismSchema -> PolymorphismSchema
Parameters
- targetType
- Type: SystemType
The type of the serialization target. - 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:
PolymorphismSchemaA new instance of the
PolymorphismSchema class for dictionary object which uses type embedding based polymorphism.
Exceptions See Also