# GrapeCity.ActiveReports.Rendering.Tools.EnumerableExtension.SelectManyWithPrev

## Content

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



<h1 id="GrapeCity_ActiveReports_Rendering_Tools_EnumerableExtension_SelectManyWithPrev_" data-uid="GrapeCity.ActiveReports.Rendering.Tools.EnumerableExtension.SelectManyWithPrev*">SelectManyWithPrev Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Rendering_Tools_EnumerableExtension_SelectManyWithPrev_" data-uid="GrapeCity.ActiveReports.Rendering.Tools.EnumerableExtension.SelectManyWithPrev*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_Tools_EnumerableExtension_SelectManyWithPrev__2_System_Collections_Generic_IEnumerable___0__System_Func___1___0_System_Collections_Generic_IEnumerable___1___" data-uid="GrapeCity.ActiveReports.Rendering.Tools.EnumerableExtension.SelectManyWithPrev``2(System.Collections.Generic.IEnumerable{``0},System.Func{``1,``0,System.Collections.Generic.IEnumerable{``1}})">SelectManyWithPrev&lt;TSource, TResult&gt;(IEnumerable&lt;TSource&gt;, Func&lt;TResult, TSource, IEnumerable&lt;TResult&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>Selects many items with a previous element reference.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static IEnumerable&lt;TResult&gt; SelectManyWithPrev&lt;TSource, TResult&gt;(this IEnumerable&lt;TSource&gt; source, Func&lt;TResult, TSource, IEnumerable&lt;TResult&gt;&gt; selector)</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.collections.generic.ienumerable-1">IEnumerable</a>&lt;TSource&gt;</td>
      <td><span class="parametername">source</span></td>
      <td><p>The source sequence.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-3">Func</a>&lt;TResult, TSource, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;TResult&gt;&gt;</td>
      <td><span class="parametername">selector</span></td>
      <td><p>A function to project each element and its previous element into a sequence of results.</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.collections.generic.ienumerable-1">IEnumerable</a>&lt;TResult&gt;</td>
      <td><p>A sequence of projected elements.</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">TSource</span></td>
      <td><p>The type of elements in the source sequence.</p>
</td>
    </tr>
    <tr>
      <td><span class="parametername">TResult</span></td>
      <td><p>The type of elements in the result sequence.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
