# C1.LiveLinq.CompiledQuery.Compile

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_LiveLinq_CompiledQuery_Compile_" data-uid="C1.LiveLinq.CompiledQuery.Compile*">Compile Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_LiveLinq_CompiledQuery_Compile_" data-uid="C1.LiveLinq.CompiledQuery.Compile*"></a>
<h4 id="C1_LiveLinq_CompiledQuery_Compile__5_System_Linq_Expressions_Expression_System_Func___0___1___2___3_C1_LiveLinq_Indexing_IIndexedSource___4____" data-uid="C1.LiveLinq.CompiledQuery.Compile``5(System.Linq.Expressions.Expression{System.Func{``0,``1,``2,``3,C1.LiveLinq.Indexing.IIndexedSource{``4}}})">Compile&lt;T1, T2, T3, T4, TResult&gt;(Expression&lt;Func&lt;T1, T2, T3, T4, IIndexedSource&lt;TResult&gt;&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>Compiles the query.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Func&lt;T1, T2, T3, T4, IIndexedSource&lt;TResult&gt;&gt; Compile&lt;T1, T2, T3, T4, TResult&gt;(Expression&lt;Func&lt;T1, T2, T3, T4, IIndexedSource&lt;TResult&gt;&gt;&gt; query)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Compile(Of T1, T2, T3, T4, TResult)(query As Expression(Of Func(Of T1, T2, T3, T4, IIndexedSource(Of TResult)))) As Func(Of T1, T2, T3, T4, IIndexedSource(Of TResult))</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="https://learn.microsoft.com/dotnet/api/system.linq.expressions.expression-1">Expression</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-5">Func</a>&lt;T1, T2, T3, T4, <a class="xref" href="C1.LiveLinq.Indexing.IIndexedSource-1.html">IIndexedSource</a>&lt;TResult&gt;&gt;&gt;</td>
      <td><span class="parametername">query</span></td>
      <td><p>The query expression to be compiled.</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="https://learn.microsoft.com/dotnet/api/system.func-5">Func</a>&lt;T1, T2, T3, T4, <a class="xref" href="C1.LiveLinq.Indexing.IIndexedSource-1.html">IIndexedSource</a>&lt;TResult&gt;&gt;</td>
      <td><p>The delegate to be called to execute the compiled query with particular parameter values.</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">T1</span></td>
      <td><p>The type of the first parameter that has to be passed in when executing the delegate returned by the Compile method.</p>
</td>
    </tr>
    <tr>
      <td><span class="parametername">T2</span></td>
      <td><p>The type of the second parameter that has to be passed in when executing the delegate returned by the Compile method.</p>
</td>
    </tr>
    <tr>
      <td><span class="parametername">T3</span></td>
      <td><p>The type of the third parameter that has to be passed in when executing the delegate returned by the Compile method.</p>
</td>
    </tr>
    <tr>
      <td><span class="parametername">T4</span></td>
      <td><p>The type of the fourth parameter that has to be passed in when executing the delegate returned by the Compile method.</p>
</td>
    </tr>
    <tr>
      <td><span class="parametername">TResult</span></td>
      <td><p>The type of <b>TResult</b> in the <a class="xref" href="C1.LiveLinq.Indexing.IIndexedSource-1.html">IIndexedSource&lt;TResult&gt;</a> returned when executing the delegate returned by the Compile method.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_LiveLinq_CompiledQuery_Compile_" data-uid="C1.LiveLinq.CompiledQuery.Compile*"></a>
<h4 id="C1_LiveLinq_CompiledQuery_Compile__4_System_Linq_Expressions_Expression_System_Func___0___1___2_C1_LiveLinq_Indexing_IIndexedSource___3____" data-uid="C1.LiveLinq.CompiledQuery.Compile``4(System.Linq.Expressions.Expression{System.Func{``0,``1,``2,C1.LiveLinq.Indexing.IIndexedSource{``3}}})">Compile&lt;T1, T2, T3, TResult&gt;(Expression&lt;Func&lt;T1, T2, T3, IIndexedSource&lt;TResult&gt;&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>Compiles the query.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Func&lt;T1, T2, T3, IIndexedSource&lt;TResult&gt;&gt; Compile&lt;T1, T2, T3, TResult&gt;(Expression&lt;Func&lt;T1, T2, T3, IIndexedSource&lt;TResult&gt;&gt;&gt; query)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Compile(Of T1, T2, T3, TResult)(query As Expression(Of Func(Of T1, T2, T3, IIndexedSource(Of TResult)))) As Func(Of T1, T2, T3, IIndexedSource(Of TResult))</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="https://learn.microsoft.com/dotnet/api/system.linq.expressions.expression-1">Expression</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-4">Func</a>&lt;T1, T2, T3, <a class="xref" href="C1.LiveLinq.Indexing.IIndexedSource-1.html">IIndexedSource</a>&lt;TResult&gt;&gt;&gt;</td>
      <td><span class="parametername">query</span></td>
      <td><p>The query expression to be compiled.</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="https://learn.microsoft.com/dotnet/api/system.func-4">Func</a>&lt;T1, T2, T3, <a class="xref" href="C1.LiveLinq.Indexing.IIndexedSource-1.html">IIndexedSource</a>&lt;TResult&gt;&gt;</td>
      <td><p>The delegate to be called to execute the compiled query with particular parameter values.</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">T1</span></td>
      <td><p>The type of the first parameter that has to be passed in when executing the delegate returned by the Compile method.</p>
</td>
    </tr>
    <tr>
      <td><span class="parametername">T2</span></td>
      <td><p>The type of the second parameter that has to be passed in when executing the delegate returned by the Compile method.</p>
</td>
    </tr>
    <tr>
      <td><span class="parametername">T3</span></td>
      <td><p>The type of the third parameter that has to be passed in when executing the delegate returned by the Compile method.</p>
</td>
    </tr>
    <tr>
      <td><span class="parametername">TResult</span></td>
      <td><p>The type of <b>TResult</b> in the <a class="xref" href="C1.LiveLinq.Indexing.IIndexedSource-1.html">IIndexedSource&lt;TResult&gt;</a> returned when executing the delegate returned by the Compile method.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_LiveLinq_CompiledQuery_Compile_" data-uid="C1.LiveLinq.CompiledQuery.Compile*"></a>
<h4 id="C1_LiveLinq_CompiledQuery_Compile__3_System_Linq_Expressions_Expression_System_Func___0___1_C1_LiveLinq_Indexing_IIndexedSource___2____" data-uid="C1.LiveLinq.CompiledQuery.Compile``3(System.Linq.Expressions.Expression{System.Func{``0,``1,C1.LiveLinq.Indexing.IIndexedSource{``2}}})">Compile&lt;T1, T2, TResult&gt;(Expression&lt;Func&lt;T1, T2, IIndexedSource&lt;TResult&gt;&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>Compiles the query.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Func&lt;T1, T2, IIndexedSource&lt;TResult&gt;&gt; Compile&lt;T1, T2, TResult&gt;(Expression&lt;Func&lt;T1, T2, IIndexedSource&lt;TResult&gt;&gt;&gt; query)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Compile(Of T1, T2, TResult)(query As Expression(Of Func(Of T1, T2, IIndexedSource(Of TResult)))) As Func(Of T1, T2, IIndexedSource(Of TResult))</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="https://learn.microsoft.com/dotnet/api/system.linq.expressions.expression-1">Expression</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-3">Func</a>&lt;T1, T2, <a class="xref" href="C1.LiveLinq.Indexing.IIndexedSource-1.html">IIndexedSource</a>&lt;TResult&gt;&gt;&gt;</td>
      <td><span class="parametername">query</span></td>
      <td><p>The query expression to be compiled.</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="https://learn.microsoft.com/dotnet/api/system.func-3">Func</a>&lt;T1, T2, <a class="xref" href="C1.LiveLinq.Indexing.IIndexedSource-1.html">IIndexedSource</a>&lt;TResult&gt;&gt;</td>
      <td><p>The delegate to be called to execute the compiled query with particular parameter values.</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">T1</span></td>
      <td><p>The type of the first parameter that has to be passed in when executing the delegate returned by the Compile method.</p>
</td>
    </tr>
    <tr>
      <td><span class="parametername">T2</span></td>
      <td><p>The type of the second parameter that has to be passed in when executing the delegate returned by the Compile method.</p>
</td>
    </tr>
    <tr>
      <td><span class="parametername">TResult</span></td>
      <td><p>The type of <b>TResult</b> in the <a class="xref" href="C1.LiveLinq.Indexing.IIndexedSource-1.html">IIndexedSource&lt;TResult&gt;</a> returned when executing the delegate returned by the Compile method.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_LiveLinq_CompiledQuery_Compile_" data-uid="C1.LiveLinq.CompiledQuery.Compile*"></a>
<h4 id="C1_LiveLinq_CompiledQuery_Compile__2_System_Linq_Expressions_Expression_System_Func___0_C1_LiveLinq_Indexing_IIndexedSource___1____" data-uid="C1.LiveLinq.CompiledQuery.Compile``2(System.Linq.Expressions.Expression{System.Func{``0,C1.LiveLinq.Indexing.IIndexedSource{``1}}})">Compile&lt;T, TResult&gt;(Expression&lt;Func&lt;T, IIndexedSource&lt;TResult&gt;&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>Compiles the query.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Func&lt;T, IIndexedSource&lt;TResult&gt;&gt; Compile&lt;T, TResult&gt;(Expression&lt;Func&lt;T, IIndexedSource&lt;TResult&gt;&gt;&gt; query)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Compile(Of T, TResult)(query As Expression(Of Func(Of T, IIndexedSource(Of TResult)))) As Func(Of T, IIndexedSource(Of TResult))</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="https://learn.microsoft.com/dotnet/api/system.linq.expressions.expression-1">Expression</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;T, <a class="xref" href="C1.LiveLinq.Indexing.IIndexedSource-1.html">IIndexedSource</a>&lt;TResult&gt;&gt;&gt;</td>
      <td><span class="parametername">query</span></td>
      <td><p>The query expression to be compiled.</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="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;T, <a class="xref" href="C1.LiveLinq.Indexing.IIndexedSource-1.html">IIndexedSource</a>&lt;TResult&gt;&gt;</td>
      <td><p>The delegate to be called to execute the compiled query with particular parameter values.</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">T</span></td>
      <td><p>The type of the parameter that has to be passed in when executing the delegate returned by the Compile method.</p>
</td>
    </tr>
    <tr>
      <td><span class="parametername">TResult</span></td>
      <td><p>The type of <b>TResult</b> in the <a class="xref" href="C1.LiveLinq.Indexing.IIndexedSource-1.html">IIndexedSource&lt;TResult&gt;</a> returned when executing the delegate returned by the Compile method.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
