# C1.LiveLinq.Collections.IndexedCollection-1.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_LiveLinq_Collections_IndexedCollection_1__ctor_" data-uid="C1.LiveLinq.Collections.IndexedCollection`1.#ctor*">IndexedCollection Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_LiveLinq_Collections_IndexedCollection_1__ctor_" data-uid="C1.LiveLinq.Collections.IndexedCollection`1.#ctor*"></a>
<h4 id="C1_LiveLinq_Collections_IndexedCollection_1__ctor" data-uid="C1.LiveLinq.Collections.IndexedCollection`1.#ctor">IndexedCollection()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.LiveLinq.Collections.IndexedCollection-1.html">IndexedCollection&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 IndexedCollection()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="C1_LiveLinq_Collections_IndexedCollection_1__ctor_" data-uid="C1.LiveLinq.Collections.IndexedCollection`1.#ctor*"></a>
<h4 id="C1_LiveLinq_Collections_IndexedCollection_1__ctor_System_Collections_Generic_IList__0__" data-uid="C1.LiveLinq.Collections.IndexedCollection`1.#ctor(System.Collections.Generic.IList{`0})">IndexedCollection(IList&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.LiveLinq.Collections.IndexedCollection-1.html">IndexedCollection&lt;T&gt;</a> class that contains elements copied from the specified list.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public IndexedCollection(IList&lt;T&gt; list)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(list As IList(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.ilist-1">IList</a>&lt;T&gt;</td>
      <td><span class="parametername">list</span></td>
      <td><p>The collection whose elements are copied to the new instance.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_LiveLinq_Collections_IndexedCollection_1__ctor_" data-uid="C1.LiveLinq.Collections.IndexedCollection`1.#ctor*"></a>
<h4 id="C1_LiveLinq_Collections_IndexedCollection_1__ctor_System_Collections_Generic_IList__0__C1_LiveLinq_Listeners_PropertyChangeListener__0__" data-uid="C1.LiveLinq.Collections.IndexedCollection`1.#ctor(System.Collections.Generic.IList{`0},C1.LiveLinq.Listeners.PropertyChangeListener{`0})">IndexedCollection(IList&lt;T&gt;, PropertyChangeListener&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.LiveLinq.Collections.IndexedCollection-1.html">IndexedCollection&lt;T&gt;</a> class that contains elements copied from the specified list,
and provides a custom <a class="xref" href="C1.LiveLinq.Listeners.PropertyChangeListener-1.html">PropertyChangeListener&lt;T&gt;</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public IndexedCollection(IList&lt;T&gt; list, PropertyChangeListener&lt;T&gt; itemPropertyChangeListener)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(list As IList(Of T), itemPropertyChangeListener As PropertyChangeListener(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.ilist-1">IList</a>&lt;T&gt;</td>
      <td><span class="parametername">list</span></td>
      <td><p>The collection whose elements are copied to the new instance.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.LiveLinq.Listeners.PropertyChangeListener-1.html">PropertyChangeListener</a>&lt;T&gt;</td>
      <td><span class="parametername">itemPropertyChangeListener</span></td>
      <td><p>The custom <a class="xref" href="C1.LiveLinq.Listeners.PropertyChangeListener-1.html">PropertyChangeListener&lt;T&gt;</a> to use with the collection.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_LiveLinq_Collections_IndexedCollection_1__ctor_System_Collections_Generic_IList__0__C1_LiveLinq_Listeners_PropertyChangeListener__0___remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This constructor is intended for the rare cases where implementing <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.inotifypropertychanged">INotifyPropertyChanged</a> in the
class of the elements of the collection is impossible</p>
</div>
</div>
