Click or drag to resize
PolymorphismSchemaForContextSpecifiedCollection Method
Creates a new instance of the PolymorphismSchema class for collection object which uses declared type or context specified concrete type.

Namespace: MsgPack.Serialization
Assembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public static PolymorphismSchema ForContextSpecifiedCollection(
	Type targetType,
	PolymorphismSchema itemSchema
)

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: PolymorphismSchema
A new instance of the PolymorphismSchema class for collection object which uses declared type or context specified concrete type.
Exceptions
ExceptionCondition
ArgumentNullExceptiontargetType is null.
See Also