# GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.Coder-1.-ctor

## Content

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



<h1 id="GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_Coder_1__ctor_" data-uid="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.Coder`1.#ctor*">Coder Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_Coder_1__ctor_" data-uid="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.Coder`1.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_Coder_1__ctor_System_Func__0_System_String__System_Func_System_String__0__" data-uid="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.Coder`1.#ctor(System.Func{`0,System.String},System.Func{System.String,`0})">Coder(Func&lt;T, string&gt;, Func&lt;string, T&gt;)</h4>
<div class="markdown level1 summary"><p>Represents a coder with encode and decode functions for a specific type.</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;T, string&gt; Encode, Func&lt;string, T&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;T, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;</td>
      <td><span class="parametername">Encode</span></td>
      <td><p>Function to encode a value of type <code class="typeparamref">T</code> to a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, T&gt;</td>
      <td><span class="parametername">Decode</span></td>
      <td><p>Function to decode a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> to a value of type <code class="typeparamref">T</code>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_Coder_1__ctor_" data-uid="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.Coder`1.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_Coder_1__ctor_GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_Coder__0__" data-uid="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.Coder`1.#ctor(GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.Coder{`0})">Coder(Coder&lt;T&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(Coders.Coder&lt;T&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.Seralization.Common.Coders.html">Coders</a>.<a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.Coder-1.html">Coder</a>&lt;T&gt;</td>
      <td><span class="parametername">original</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
