Click or drag to resize
PolymorphismSchemaForPolymorphicTuple Method
Creates a new instance of the PolymorphismSchema class for Tuple object.

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

Parameters

targetType
Type: SystemType
The type of the serialization target.
itemSchemaList
Type: MsgPack.SerializationPolymorphismSchema
The schema for collection items of the serialization target tuple. null or empty indicates all items do not have any polymorphism.

Return Value

Type: PolymorphismSchema
A new instance of the PolymorphismSchema class for Tuple object.
Exceptions
ExceptionCondition
ArgumentNullExceptiontargetType is null.
ArgumentExceptionA count of itemSchemaList does not match for an arity of the tuple type specified as targetType.
See Also