PolymorphismSchemaForPolymorphicObject Method (Type, IDictionaryString, Type) |
Creates a new instance of the
PolymorphismSchema class for non-collection object which uses ext-type code mapping based polymorphism.
Namespace: MsgPack.SerializationAssembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax [EditorBrowsableAttribute(EditorBrowsableState.Never)]
public static PolymorphismSchema ForPolymorphicObject(
Type targetType,
IDictionary<string, Type> codeTypeMapping
)
<EditorBrowsableAttribute(EditorBrowsableState.Never)>
Public Shared Function ForPolymorphicObject (
targetType As Type,
codeTypeMapping As IDictionary(Of String, Type)
) As PolymorphismSchema
public:
[EditorBrowsableAttribute(EditorBrowsableState::Never)]
static PolymorphismSchema^ ForPolymorphicObject(
Type^ targetType,
IDictionary<String^, Type^>^ codeTypeMapping
)
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
static member ForPolymorphicObject :
targetType : Type *
codeTypeMapping : IDictionary<string, Type> -> PolymorphismSchema
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.
Return Value
Type:
PolymorphismSchemaA new instance of the
PolymorphismSchema class for non-collection object which uses ext-type code mapping based polymorphism.
Exceptions See Also