# GrapeCity.Documents.Common.StructConverter-2

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Common_StructConverter_2" data-uid="GrapeCity.Documents.Common.StructConverter`2" class="text-break">StructConverter&lt;TInput, TOutput&gt; Delegate
</h1>
  <div class="markdown level0 summary"><p>Represents a method that converts an object from one struct type to another struct type.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Common.html">GrapeCity.Documents.Common</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Imaging.dll</h6>
  <h5 id="GrapeCity_Documents_Common_StructConverter_2_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public delegate void StructConverter&lt;TInput, TOutput&gt;(in TInput input, out TOutput output) where TInput : struct where TOutput : struct</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Delegate Sub StructConverter(Of TInput As Structure, TOutput As Structure)(ByRef input As TInput, ByRef output As TOutput)</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><span class="xref">TInput</span></td>
        <td><span class="parametername">input</span></td>
        <td><p>The struct to convert.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">TOutput</span></td>
        <td><span class="parametername">output</span></td>
        <td><p>The converted struct.</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">TInput</span></td>
        <td><p>The type of struct that is to be converted.</p>
</td>
      </tr>
      <tr>
        <td><span class="parametername">TOutput</span></td>
        <td><p>The type the input struct is to be converted to.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
