# C1.Schedule.C1ObservableKeyedCollection-2.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Schedule_C1ObservableKeyedCollection_2__ctor_" data-uid="C1.Schedule.C1ObservableKeyedCollection`2.#ctor*">C1ObservableKeyedCollection Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Schedule_C1ObservableKeyedCollection_2__ctor_" data-uid="C1.Schedule.C1ObservableKeyedCollection`2.#ctor*"></a>
<h4 id="C1_Schedule_C1ObservableKeyedCollection_2__ctor" data-uid="C1.Schedule.C1ObservableKeyedCollection`2.#ctor">C1ObservableKeyedCollection()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Schedule.C1ObservableKeyedCollection-2.html">C1ObservableKeyedCollection&lt;TKey, TItem&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 C1ObservableKeyedCollection()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub New()</code></pre>
</div>


<a id="C1_Schedule_C1ObservableKeyedCollection_2__ctor_" data-uid="C1.Schedule.C1ObservableKeyedCollection`2.#ctor*"></a>
<h4 id="C1_Schedule_C1ObservableKeyedCollection_2__ctor_System_Collections_Generic_IEqualityComparer__0__" data-uid="C1.Schedule.C1ObservableKeyedCollection`2.#ctor(System.Collections.Generic.IEqualityComparer{`0})">C1ObservableKeyedCollection(IEqualityComparer&lt;TKey&gt;)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Schedule.C1ObservableKeyedCollection-2.html">C1ObservableKeyedCollection&lt;TKey, TItem&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 C1ObservableKeyedCollection(IEqualityComparer&lt;TKey&gt; comparer)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub New(comparer As IEqualityComparer(Of TKey))</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.iequalitycomparer-1">IEqualityComparer</a>&lt;TKey&gt;</td>
      <td><span class="parametername">comparer</span></td>
      <td><p>The implementation of the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.iequalitycomparer">IEqualityComparer</a> generic interface
to use when comparing keys, or a null reference (Nothing in Visual Basic)
to use the default equality comparer for the type of the key, obtained
from EqualityComparer.Default.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Schedule_C1ObservableKeyedCollection_2__ctor_" data-uid="C1.Schedule.C1ObservableKeyedCollection`2.#ctor*"></a>
<h4 id="C1_Schedule_C1ObservableKeyedCollection_2__ctor_System_Collections_Generic_IEqualityComparer__0__System_Int32_" data-uid="C1.Schedule.C1ObservableKeyedCollection`2.#ctor(System.Collections.Generic.IEqualityComparer{`0},System.Int32)">C1ObservableKeyedCollection(IEqualityComparer&lt;TKey&gt;, int)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected C1ObservableKeyedCollection(IEqualityComparer&lt;TKey&gt; comparer, int dictionaryCreationThreshold)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub New(comparer As IEqualityComparer(Of TKey), dictionaryCreationThreshold As Integer)</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.iequalitycomparer-1">IEqualityComparer</a>&lt;TKey&gt;</td>
      <td><span class="parametername">comparer</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">dictionaryCreationThreshold</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
