[]
Creates a Coders.ObjectCoder<T> type coder for the XML serialization of collections with different item types.
public static Coders.ObjectCoder<TBaseItem> Switch<TBaseItem>(params IXmlItemSerializer[] itemSerializer)
| Type | Name | Description |
|---|---|---|
| IXmlItemSerializer[] | itemSerializer | A collection of item serializers with different item types. |
| Type | Description |
|---|---|
| Coders.ObjectCoder<TBaseItem> | A Coders.ObjectCoder<T> object which writes and reads collections of objects to/from XML format. |
| Name | Description |
|---|---|
| TBaseItem |
The method should be used to create serializers for properties that can reference objects of different types, such as a collection of report items.