# GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.Coder-2.-ctor

## Content

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



<h1 id="GrapeCity_ActiveReports_Core_Rdl_Persistence_Json_Coder_2__ctor_" data-uid="GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.Coder`2.#ctor*">Coder Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Core_Rdl_Persistence_Json_Coder_2__ctor_" data-uid="GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.Coder`2.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Core_Rdl_Persistence_Json_Coder_2__ctor_System_Func__0__1__System_Func__1__0__" data-uid="GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.Coder`2.#ctor(System.Func{`0,`1},System.Func{`1,`0})">Coder(Func&lt;T1, T2&gt;, Func&lt;T2, T1&gt;)</h4>
<div class="markdown level1 summary"><p>Pair of arbitrary encoder/decoder objects.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Coder(Func&lt;T1, T2&gt; Encode, Func&lt;T2, T1&gt; Decode)</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="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;T1, T2&gt;</td>
      <td><span class="parametername">Encode</span></td>
      <td><p>A function that takes an object of type <code class="typeparamref">T1</code> and encodes it into an <code class="typeparamref">T2</code>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;T2, T1&gt;</td>
      <td><span class="parametername">Decode</span></td>
      <td><p>A function that takes an <code class="typeparamref">T2</code> and decodes it into an object of type <code class="typeparamref">T1</code>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Core_Rdl_Persistence_Json_Coder_2__ctor_System_Func__0__1__System_Func__1__0___remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This record should not be used directly in application code.It is designed for internal operations within the product
libraries and may change or be removed in future versions without notice.</p>
</div>


<a id="GrapeCity_ActiveReports_Core_Rdl_Persistence_Json_Coder_2__ctor_" data-uid="GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.Coder`2.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Core_Rdl_Persistence_Json_Coder_2__ctor_GrapeCity_ActiveReports_Core_Rdl_Persistence_Json_Coder__0__1__" data-uid="GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.Coder`2.#ctor(GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.Coder{`0,`1})">Coder(Coder&lt;T1, T2&gt;)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected Coder(Coder&lt;T1, T2&gt; original)</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.Coder-2.html">Coder</a>&lt;T1, T2&gt;</td>
      <td><span class="parametername">original</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
