# GrapeCity.Enterprise.Data.Expressions.ExpressionExtensions.Replace

## Content

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



<h1 id="GrapeCity_Enterprise_Data_Expressions_ExpressionExtensions_Replace_" data-uid="GrapeCity.Enterprise.Data.Expressions.ExpressionExtensions.Replace*">Replace Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Enterprise_Data_Expressions_ExpressionExtensions_Replace_" data-uid="GrapeCity.Enterprise.Data.Expressions.ExpressionExtensions.Replace*"></a>
<h4 id="GrapeCity_Enterprise_Data_Expressions_ExpressionExtensions_Replace_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo_System_Func_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo__" data-uid="GrapeCity.Enterprise.Data.Expressions.ExpressionExtensions.Replace(GrapeCity.Enterprise.Data.Expressions.ExpressionInfo,System.Func{GrapeCity.Enterprise.Data.Expressions.ExpressionInfo,GrapeCity.Enterprise.Data.Expressions.ExpressionInfo})">Replace(ExpressionInfo, Func&lt;ExpressionInfo, ExpressionInfo&gt;)</h4>
<div class="markdown level1 summary"><p>Re-creates new expression tree with renamed identifier.</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 Replace(this ExpressionInfo e, Func&lt;ExpressionInfo, ExpressionInfo&gt; replacer)</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.Enterprise.Data.Expressions.ExpressionInfo.html">ExpressionInfo</a></td>
      <td><span class="parametername">e</span></td>
      <td><p>Expression.</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="GrapeCity.Enterprise.Data.Expressions.ExpressionInfo.html">ExpressionInfo</a>, <a class="xref" href="GrapeCity.Enterprise.Data.Expressions.ExpressionInfo.html">ExpressionInfo</a>&gt;</td>
      <td><span class="parametername">replacer</span></td>
      <td><p>Replacer 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="GrapeCity.Enterprise.Data.Expressions.ExpressionInfo.html">ExpressionInfo</a></td>
      <td><p>New expression tree with renamed identifier.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
