# C1.DataCollection.C1DelegateList-1.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_DataCollection_C1DelegateList_1__ctor_" data-uid="C1.DataCollection.C1DelegateList`1.#ctor*">C1DelegateList Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_DataCollection_C1DelegateList_1__ctor_" data-uid="C1.DataCollection.C1DelegateList`1.#ctor*"></a>
<h4 id="C1_DataCollection_C1DelegateList_1__ctor_System_Int32_System_Func_System_Int32__0__" data-uid="C1.DataCollection.C1DelegateList`1.#ctor(System.Int32,System.Func{System.Int32,`0})">C1DelegateList(int, Func&lt;int, T&gt;)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.DataCollection.C1DelegateList-1.html">C1DelegateList&lt;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 C1DelegateList(int count, Func&lt;int, T&gt; select)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(count As Integer, [select] As Func(Of Integer, 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.int32">int</a></td>
      <td><span class="parametername">count</span></td>
      <td><p>The number of items.</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.int32">int</a>, T&gt;</td>
      <td><span class="parametername">select</span></td>
      <td><p>The select function used to get the items.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_DataCollection_C1DelegateList_1__ctor_" data-uid="C1.DataCollection.C1DelegateList`1.#ctor*"></a>
<h4 id="C1_DataCollection_C1DelegateList_1__ctor_System_Collections_Generic_IReadOnlyList__0__" data-uid="C1.DataCollection.C1DelegateList`1.#ctor(System.Collections.Generic.IReadOnlyList{`0})">C1DelegateList(IReadOnlyList&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.DataCollection.C1DelegateList-1.html">C1DelegateList&lt;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 C1DelegateList(IReadOnlyList&lt;T&gt; list)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(list As 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.generic.ireadonlylist-1">IReadOnlyList</a>&lt;T&gt;</td>
      <td><span class="parametername">list</span></td>
      <td><p>The list.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_DataCollection_C1DelegateList_1__ctor_" data-uid="C1.DataCollection.C1DelegateList`1.#ctor*"></a>
<h4 id="C1_DataCollection_C1DelegateList_1__ctor_System_Collections_IList_" data-uid="C1.DataCollection.C1DelegateList`1.#ctor(System.Collections.IList)">C1DelegateList(IList)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.DataCollection.C1DelegateList-1.html">C1DelegateList&lt;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 C1DelegateList(IList list)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(list As IList)</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.ilist">IList</a></td>
      <td><span class="parametername">list</span></td>
      <td><p>The list.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_DataCollection_C1DelegateList_1__ctor_" data-uid="C1.DataCollection.C1DelegateList`1.#ctor*"></a>
<h4 id="C1_DataCollection_C1DelegateList_1__ctor_System_Func_System_Int32__System_Func_System_Int32__0__" data-uid="C1.DataCollection.C1DelegateList`1.#ctor(System.Func{System.Int32},System.Func{System.Int32,`0})">C1DelegateList(Func&lt;int&gt;, Func&lt;int, T&gt;)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.DataCollection.C1DelegateList-1.html">C1DelegateList&lt;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 C1DelegateList(Func&lt;int&gt; getCount, Func&lt;int, T&gt; select)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(getCount As Func(Of Integer), [select] As Func(Of Integer, 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.func-1">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>&gt;</td>
      <td><span class="parametername">getCount</span></td>
      <td><p>Function that returns the number of items.</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.int32">int</a>, T&gt;</td>
      <td><span class="parametername">select</span></td>
      <td><p>The select function used to get the items.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
