# GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders

## Content

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



  <h1 id="GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders" data-uid="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders" class="text-break">Coders Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of coder functions for encoding and decoding common types.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">Coders</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.html">GrapeCity.ActiveReports.Core.Rdl.Seralization.Common</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Core.Rdl.dll</h6>
  <h5 id="GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class Coders</code></pre>
  </div>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_Int" data-uid="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.Int">
          <a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.Int.html">Int</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a coder for integer values.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_OptionalString" data-uid="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.OptionalString">
          <a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.OptionalString.html">OptionalString</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a coder for strings with a <code>null</code> value as the default.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_StringDefEmpty" data-uid="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.StringDefEmpty">
          <a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.StringDefEmpty.html">StringDefEmpty</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a coder for strings with an empty string as the default value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_IntDefZero" data-uid="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.IntDefZero">
          <a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.IntDefZero.html#GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_IntDefZero">IntDefZero</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a coder for integer values with <code>0</code> as the default value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_Bool" data-uid="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.Bool">
          <a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.Bool.html#GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_Bool">Bool()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a coder for boolean values.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_Bool_System_Boolean_" data-uid="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.Bool(System.Boolean)">
          <a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.Bool.html#GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_Bool_System_Boolean_">Bool(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a coder for boolean values with a default value.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_Default__1_GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_Coder___0____0_" data-uid="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.Default``1(GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.Coder{``0},``0)">
          <a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.Default.html#GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_Default__1_GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_Coder___0____0_">Default&lt;T&gt;(Coder&lt;T&gt;, T)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a coder with a default value.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_Enum__1" data-uid="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.Enum``1">
          <a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.Enum.html#GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_Enum__1">Enum&lt;T&gt;()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a coder for enumeration values.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_Enum__1___0_" data-uid="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.Enum``1(``0)">
          <a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.Enum.html#GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_Enum__1___0_">Enum&lt;T&gt;(T)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a coder for enumeration values with a default value.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_SkipOnWriteIf__1_GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_Coder___0__System_Func___0_System_Boolean__" data-uid="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.SkipOnWriteIf``1(GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.Coder{``0},System.Func{``0,System.Boolean})">
          <a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.SkipOnWriteIf.html#GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_SkipOnWriteIf__1_GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_Coder___0__System_Func___0_System_Boolean__">SkipOnWriteIf&lt;T&gt;(Coder&lt;T&gt;, Func&lt;T, bool&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a coder for objects with a value which shouldn't be written is satisfies the condition.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_SkipOnWrite__1_GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_Coder___0__" data-uid="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.SkipOnWrite``1(GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.Coder{``0})">
          <a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.SkipOnWrite.html#GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_SkipOnWrite__1_GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_Coder___0__">SkipOnWrite&lt;T&gt;(Coder&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Used for legacy properties which can be read but must not be written.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_String_System_String_" data-uid="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.String(System.String)">
          <a class="xref" href="GrapeCity.ActiveReports.Core.Rdl.Seralization.Common.Coders.String.html#GrapeCity_ActiveReports_Core_Rdl_Seralization_Common_Coders_String_System_String_">String(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a coder for strings with a default value.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
