# GrapeCity.ActiveReports.Rdl.Tools.ExpressionInfoExtensions.ReplaceFields

## Content

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



<h1 id="GrapeCity_ActiveReports_Rdl_Tools_ExpressionInfoExtensions_ReplaceFields_" data-uid="GrapeCity.ActiveReports.Rdl.Tools.ExpressionInfoExtensions.ReplaceFields*">ReplaceFields Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Rdl_Tools_ExpressionInfoExtensions_ReplaceFields_" data-uid="GrapeCity.ActiveReports.Rdl.Tools.ExpressionInfoExtensions.ReplaceFields*"></a>
<h4 id="GrapeCity_ActiveReports_Rdl_Tools_ExpressionInfoExtensions_ReplaceFields_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo_System_Func_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo__" data-uid="GrapeCity.ActiveReports.Rdl.Tools.ExpressionInfoExtensions.ReplaceFields(GrapeCity.Enterprise.Data.Expressions.ExpressionInfo,System.Func{GrapeCity.Enterprise.Data.Expressions.ExpressionInfo,GrapeCity.Enterprise.Data.Expressions.ExpressionInfo,GrapeCity.Enterprise.Data.Expressions.ExpressionInfo})">ReplaceFields(ExpressionInfo, Func&lt;ExpressionInfo, ExpressionInfo, ExpressionInfo&gt;)</h4>
<div class="markdown level1 summary"><p>Replaces fields in the specified expression.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static ExpressionInfo ReplaceFields(ExpressionInfo expression, Func&lt;ExpressionInfo, ExpressionInfo, ExpressionInfo&gt; replaceField)</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="../MESCIUS.ActiveReports.Core.Data.ExpressionInfo/GrapeCity.Enterprise.Data.Expressions.ExpressionInfo.html">ExpressionInfo</a></td>
      <td><span class="parametername">expression</span></td>
      <td><p>An <a class="xref" href="../MESCIUS.ActiveReports.Core.Data.ExpressionInfo/GrapeCity.Enterprise.Data.Expressions.ExpressionInfo.html">ExpressionInfo</a> object to process.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-3">Func</a>&lt;<a class="xref" href="../MESCIUS.ActiveReports.Core.Data.ExpressionInfo/GrapeCity.Enterprise.Data.Expressions.ExpressionInfo.html">ExpressionInfo</a>, <a class="xref" href="../MESCIUS.ActiveReports.Core.Data.ExpressionInfo/GrapeCity.Enterprise.Data.Expressions.ExpressionInfo.html">ExpressionInfo</a>, <a class="xref" href="../MESCIUS.ActiveReports.Core.Data.ExpressionInfo/GrapeCity.Enterprise.Data.Expressions.ExpressionInfo.html">ExpressionInfo</a>&gt;</td>
      <td><span class="parametername">replaceField</span></td>
      <td><p>A replacement function.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="../MESCIUS.ActiveReports.Core.Data.ExpressionInfo/GrapeCity.Enterprise.Data.Expressions.ExpressionInfo.html">ExpressionInfo</a></td>
      <td><p>A modified <a class="xref" href="../MESCIUS.ActiveReports.Core.Data.ExpressionInfo/GrapeCity.Enterprise.Data.Expressions.ExpressionInfo.html">ExpressionInfo</a> object.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
