# GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.JsonCoders.Collection

## Content

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



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



<a id="GrapeCity_ActiveReports_Core_Rdl_Persistence_Json_JsonCoders_Collection_" data-uid="GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.JsonCoders.Collection*"></a>
<h4 id="GrapeCity_ActiveReports_Core_Rdl_Persistence_Json_JsonCoders_Collection__2_GrapeCity_ActiveReports_Core_Rdl_Persistence_Json_JsonCoder___0__" data-uid="GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.JsonCoders.Collection``2(GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.JsonCoder{``0})">Collection&lt;T, TCollection&gt;(JsonCoder&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Gets a coder for the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection-1">Collection&lt;T&gt;</a> type.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static JsonCoder&lt;TCollection&gt; Collection&lt;T, TCollection&gt;(JsonCoder&lt;T&gt; itemCoder) where TCollection : Collection&lt;T&gt;, new()</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.Persistence.Json.JsonCoder-1.html">JsonCoder</a>&lt;T&gt;</td>
      <td><span class="parametername">itemCoder</span></td>
      <td><p>A <a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.JsonCoder-1.html">JsonCoder&lt;T&gt;</a> to encode and decode the value.</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.Persistence.Json.JsonCoder-1.html">JsonCoder</a>&lt;TCollection&gt;</td>
      <td><p>A <a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.JsonCoder-1.html">JsonCoder&lt;T&gt;</a> with the default value handling.</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">T</span></td>
      <td><p>The type of the value.</p>
</td>
    </tr>
    <tr>
      <td><span class="parametername">TCollection</span></td>
      <td><p>The collection of the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection-1">Collection&lt;T&gt;</a> values.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.formatexception">FormatException</a></td>
      <td><p>Thrown if the value is not a <code>array</code>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
