[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Core.Rdl.Persistence.Xml.SerializerBuilder.Collection

Collection Method

Collection<TItem>(ObjectCoder<TItem>)

Creates a coder for serializing collections of items to/from XML.

Declaration
public static Coders.ObjectCoder<ICollection<TItem>> Collection<TItem>(Coders.ObjectCoder<TItem> itemSerializer)
Parameters
Type Name Description
Coders.ObjectCoder<TItem> itemSerializer

A Coders.ObjectCoder<T> object for serializing individual items.

Returns
Type Description
Coders.ObjectCoder<ICollection<TItem>>

A Coders.ObjectCoder<T> object which writes and reads collections of TItem to/from XML format.

Type Parameters
Name Description
TItem

The type of the items in the collection.

Collection<TItem>(IXmlItemSerializer)

Creates a coder for serializing collections of items to/from XML.

Declaration
public static Coders.ObjectCoder<ICollection<TItem>> Collection<TItem>(IXmlItemSerializer itemSerializer)
Parameters
Type Name Description
IXmlItemSerializer itemSerializer

An IXmlItemSerializer object for serializing individual items.

Returns
Type Description
Coders.ObjectCoder<ICollection<TItem>>

The Coders.ObjectCoder<T> instance which writes and reads collections of TItem to/from XML format.

Type Parameters
Name Description
TItem

The type of the items in the collection.