# GrapeCity.ActiveReports.Rendering.Components.ProgramBase.CompileExpression

## Content

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



<h1 id="GrapeCity_ActiveReports_Rendering_Components_ProgramBase_CompileExpression_" data-uid="GrapeCity.ActiveReports.Rendering.Components.ProgramBase.CompileExpression*">CompileExpression Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Rendering_Components_ProgramBase_CompileExpression_" data-uid="GrapeCity.ActiveReports.Rendering.Components.ProgramBase.CompileExpression*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_Components_ProgramBase_CompileExpression__1_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo___0_System_Boolean_System_Func___0___0__" data-uid="GrapeCity.ActiveReports.Rendering.Components.ProgramBase.CompileExpression``1(GrapeCity.Enterprise.Data.Expressions.ExpressionInfo,``0,System.Boolean,System.Func{``0,``0})">CompileExpression&lt;T&gt;(ExpressionInfo, T, bool, Func&lt;T, T&gt;)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Obsolete(&quot;This method will be removed in future versions. Use CompileExpression&lt;T&gt;(ExpressionInfo expression, T defval) instead.&quot;)]
public virtual EvalFunc&lt;T&gt; CompileExpression&lt;T&gt;(ExpressionInfo expression, T defval, bool disableCache = false, Func&lt;T, T&gt; convert = null)</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></td>
    </tr>
    <tr>
      <td><span class="xref">T</span></td>
      <td><span class="parametername">defval</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">disableCache</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;T, T&gt;</td>
      <td><span class="parametername">convert</span></td>
      <td></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.ActiveReports.Rendering.Components.EvalFunc-1.html">EvalFunc</a>&lt;T&gt;</td>
      <td></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">T</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
