PolymorphismSchemaForPolymorphicCollection Method (Type, PolymorphismSchema) |
Creates a new instance of the
PolymorphismSchema class for collection 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 ForPolymorphicCollection(
Type targetType,
PolymorphismSchema itemSchema
)
<EditorBrowsableAttribute(EditorBrowsableState.Never)>
Public Shared Function ForPolymorphicCollection (
targetType As Type,
itemSchema As PolymorphismSchema
) As PolymorphismSchema
public:
[EditorBrowsableAttribute(EditorBrowsableState::Never)]
static PolymorphismSchema^ ForPolymorphicCollection(
Type^ targetType,
PolymorphismSchema^ itemSchema
)
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
static member ForPolymorphicCollection :
targetType : Type *
itemSchema : PolymorphismSchema -> PolymorphismSchema
Parameters
- targetType
- Type: SystemType
The type of the serialization target. - itemSchema
- Type: MsgPack.SerializationPolymorphismSchema
The schema for collection items of the serialization target collection.
Return Value
Type:
PolymorphismSchemaA new instance of the
PolymorphismSchema class for collection object which uses type embedding based polymorphism.
Exceptions See Also