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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Core_Rdl_Persistence_Xml_SerializerBuilder_Collection_" data-uid="GrapeCity.ActiveReports.Core.Rdl.Persistence.Xml.SerializerBuilder.Collection*">Collection Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Core_Rdl_Persistence_Xml_SerializerBuilder_Collection_" data-uid="GrapeCity.ActiveReports.Core.Rdl.Persistence.Xml.SerializerBuilder.Collection*"></a>
<h4 id="GrapeCity_ActiveReports_Core_Rdl_Persistence_Xml_SerializerBuilder_Collection__1_GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_ObjectCoder___0__" data-uid="GrapeCity.ActiveReports.Core.Rdl.Persistence.Xml.SerializerBuilder.Collection``1(GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.ObjectCoder{``0})">Collection&lt;TItem&gt;(ObjectCoder&lt;TItem&gt;)</h4>
<div class="markdown level1 summary"><p>Creates a coder for serializing collections of items to/from XML.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Coders.ObjectCoder&lt;ICollection&lt;TItem&gt;&gt; Collection&lt;TItem&gt;(Coders.ObjectCoder&lt;TItem&gt; itemSerializer)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.html">Coders</a>.<a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.ObjectCoder-1.html">ObjectCoder</a>&lt;TItem&gt;</td>
      <td><span class="parametername">itemSerializer</span></td>
      <td><p>A <a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.ObjectCoder-1.html">Coders.ObjectCoder&lt;T&gt;</a> object for serializing individual items.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.html">Coders</a>.<a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.ObjectCoder-1.html">ObjectCoder</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;TItem&gt;&gt;</td>
      <td><p>A <a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.ObjectCoder-1.html">Coders.ObjectCoder&lt;T&gt;</a> object which writes and reads
collections of <code class="typeparamref">TItem</code> to/from XML format.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="parametername">TItem</span></td>
      <td><p>The type of the items in the collection.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Core_Rdl_Persistence_Xml_SerializerBuilder_Collection_" data-uid="GrapeCity.ActiveReports.Core.Rdl.Persistence.Xml.SerializerBuilder.Collection*"></a>
<h4 id="GrapeCity_ActiveReports_Core_Rdl_Persistence_Xml_SerializerBuilder_Collection__1_GrapeCity_ActiveReports_Core_Rdl_Extensibility_IXmlItemSerializer_" data-uid="GrapeCity.ActiveReports.Core.Rdl.Persistence.Xml.SerializerBuilder.Collection``1(GrapeCity.ActiveReports.Core.Rdl.Extensibility.IXmlItemSerializer)">Collection&lt;TItem&gt;(IXmlItemSerializer)</h4>
<div class="markdown level1 summary"><p>Creates a coder for serializing collections of items to/from XML.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Coders.ObjectCoder&lt;ICollection&lt;TItem&gt;&gt; Collection&lt;TItem&gt;(IXmlItemSerializer itemSerializer)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Extensibility.IXmlItemSerializer.html">IXmlItemSerializer</a></td>
      <td><span class="parametername">itemSerializer</span></td>
      <td><p>An <a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Extensibility.IXmlItemSerializer.html">IXmlItemSerializer</a> object for serializing individual items.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.html">Coders</a>.<a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.ObjectCoder-1.html">ObjectCoder</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;TItem&gt;&gt;</td>
      <td><p>The <a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.ObjectCoder-1.html">Coders.ObjectCoder&lt;T&gt;</a> instance which writes and reads
collections of <code class="typeparamref">TItem</code> to/from XML format.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="parametername">TItem</span></td>
      <td><p>The type of the items in the collection.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
