# C1.DataCollection.C1SelectManyDataCollection-2.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_DataCollection_C1SelectManyDataCollection_2__ctor_" data-uid="C1.DataCollection.C1SelectManyDataCollection`2.#ctor*">C1SelectManyDataCollection Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_DataCollection_C1SelectManyDataCollection_2__ctor_" data-uid="C1.DataCollection.C1SelectManyDataCollection`2.#ctor*"></a>
<h4 id="C1_DataCollection_C1SelectManyDataCollection_2__ctor_System_Collections_IEnumerable_System_Func_System_Collections_Generic_IReadOnlyList__0__System_Int32_System_Collections_Generic_IReadOnlyList__1___" data-uid="C1.DataCollection.C1SelectManyDataCollection`2.#ctor(System.Collections.IEnumerable,System.Func{System.Collections.Generic.IReadOnlyList{`0},System.Int32,System.Collections.Generic.IReadOnlyList{`1}})">C1SelectManyDataCollection(IEnumerable, Func&lt;IReadOnlyList&lt;S&gt;, int, IReadOnlyList&lt;T&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.DataCollection.C1SelectManyDataCollection-2.html">C1SelectManyDataCollection&lt;S, T&gt;</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1SelectManyDataCollection(IEnumerable source, Func&lt;IReadOnlyList&lt;S&gt;, int, IReadOnlyList&lt;T&gt;&gt; selectMany)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(source As IEnumerable, selectMany As Func(Of IReadOnlyList(Of S), Integer, IReadOnlyList(Of T)))</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.ienumerable">IEnumerable</a></td>
      <td><span class="parametername">source</span></td>
      <td><p>The source.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-3">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1">IReadOnlyList</a>&lt;S&gt;, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1">IReadOnlyList</a>&lt;T&gt;&gt;</td>
      <td><span class="parametername">selectMany</span></td>
      <td><p>Select many function which converts a source item into an item of this collection.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_DataCollection_C1SelectManyDataCollection_2__ctor_" data-uid="C1.DataCollection.C1SelectManyDataCollection`2.#ctor*"></a>
<h4 id="C1_DataCollection_C1SelectManyDataCollection_2__ctor_System_Collections_IEnumerable_" data-uid="C1.DataCollection.C1SelectManyDataCollection`2.#ctor(System.Collections.IEnumerable)">C1SelectManyDataCollection(IEnumerable)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.DataCollection.C1SelectManyDataCollection-2.html">C1SelectManyDataCollection&lt;S, T&gt;</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected C1SelectManyDataCollection(IEnumerable source)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub New(source As IEnumerable)</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.ienumerable">IEnumerable</a></td>
      <td><span class="parametername">source</span></td>
      <td><p>The source.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
