# GrapeCity.Enterprise.Data.Expressions.ExpressionExtensions.ReplaceIdentifier

## Content

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



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



<a id="GrapeCity_Enterprise_Data_Expressions_ExpressionExtensions_ReplaceIdentifier_" data-uid="GrapeCity.Enterprise.Data.Expressions.ExpressionExtensions.ReplaceIdentifier*"></a>
<h4 id="GrapeCity_Enterprise_Data_Expressions_ExpressionExtensions_ReplaceIdentifier_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo_System_Func_System_String_System_String__" data-uid="GrapeCity.Enterprise.Data.Expressions.ExpressionExtensions.ReplaceIdentifier(GrapeCity.Enterprise.Data.Expressions.ExpressionInfo,System.Func{System.String,System.String})">ReplaceIdentifier(ExpressionInfo, Func&lt;string, string&gt;)</h4>
<div class="markdown level1 summary"><p>Replaces all occurrences of the identifier in current expression, using provided function.</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 ReplaceIdentifier(this ExpressionInfo originalExpression, Func&lt;string, string&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">originalExpression</span></td>
      <td><p>Original 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="https://learn.microsoft.com/dotnet/api/system.string">string</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;</td>
      <td><span class="parametername">replacer</span></td>
      <td><p>Replacing 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 ExpressionInfo instance with replaced identifier or exact instance if no changes were made.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
