# GrapeCity.ActiveReports.Converters.AdapterConverter-2

## Content

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



  <h1 id="GrapeCity_ActiveReports_Converters_AdapterConverter_2" data-uid="GrapeCity.ActiveReports.Converters.AdapterConverter`2" class="text-break">AdapterConverter&lt;TSource, TTarget&gt; Class
</h1>
  <div class="markdown level0 summary"><p>Represents a converter that adapts a source type to a target type using a specified function.</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">AdapterConverter&lt;TSource, TTarget&gt;</span></div>
      <div class="level2"><a class="xref" href="GrapeCity.ActiveReports.Converters.ErrorInfoCollectionConverter.html">ErrorInfoCollectionConverter</a></div>
      <div class="level2"><a class="xref" href="GrapeCity.ActiveReports.Converters.PagesCollectionConverter.html">PagesCollectionConverter</a></div>
      <div class="level2"><a class="xref" href="GrapeCity.ActiveReports.Converters.SearchResultCollectionConverter.html">SearchResultCollectionConverter</a></div>
      <div class="level2"><a class="xref" href="GrapeCity.ActiveReports.Converters.ThumbnailItemCollectionConverter.html">ThumbnailItemCollectionConverter</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.data.ivalueconverter">IValueConverter</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.Converters.html">GrapeCity.ActiveReports.Converters</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Viewer.Wpf.dll</h6>
  <h5 id="GrapeCity_ActiveReports_Converters_AdapterConverter_2_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class AdapterConverter&lt;TSource, TTarget&gt; : IValueConverter</code></pre>
  </div>
  <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">TSource</span></td>
        <td><p>The original type to be converted.</p>
</td>
      </tr>
      <tr>
        <td><span class="parametername">TTarget</span></td>
        <td><p>The final type after conversion.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_Converters_AdapterConverter_2__ctor_System_Func__0__1__" data-uid="GrapeCity.ActiveReports.Converters.AdapterConverter`2.#ctor(System.Func{`0,`1})">
          <a class="xref" href="GrapeCity.ActiveReports.Converters.AdapterConverter-2.-ctor.html#GrapeCity_ActiveReports_Converters_AdapterConverter_2__ctor_System_Func__0__1__">AdapterConverter(Func&lt;TSource, TTarget&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.Converters.AdapterConverter-2.html">AdapterConverter&lt;TSource, TTarget&gt;</a> class with the specified creator function.</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_Converters_AdapterConverter_2_Convert_System_Object_System_Type_System_Object_System_Globalization_CultureInfo_" data-uid="GrapeCity.ActiveReports.Converters.AdapterConverter`2.Convert(System.Object,System.Type,System.Object,System.Globalization.CultureInfo)">
          <a class="xref" href="GrapeCity.ActiveReports.Converters.AdapterConverter-2.Convert.html#GrapeCity_ActiveReports_Converters_AdapterConverter_2_Convert_System_Object_System_Type_System_Object_System_Globalization_CultureInfo_">Convert(object, Type, object, CultureInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts a value to the target type using the creator function.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Converters_AdapterConverter_2_ConvertBack_System_Object_System_Type_System_Object_System_Globalization_CultureInfo_" data-uid="GrapeCity.ActiveReports.Converters.AdapterConverter`2.ConvertBack(System.Object,System.Type,System.Object,System.Globalization.CultureInfo)">
          <a class="xref" href="GrapeCity.ActiveReports.Converters.AdapterConverter-2.ConvertBack.html#GrapeCity_ActiveReports_Converters_AdapterConverter_2_ConvertBack_System_Object_System_Type_System_Object_System_Globalization_CultureInfo_">ConvertBack(object, Type, object, CultureInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Modifies the target data before passing it to the source object.
This method is called only in <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.data.bindingmode#system-windows-data-bindingmode-twoway">TwoWay</a> bindings.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
