# C1.Maui.Core.C1OrderedSet.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Maui_Core_C1OrderedSet__ctor_" data-uid="C1.Maui.Core.C1OrderedSet.#ctor*">C1OrderedSet Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Maui_Core_C1OrderedSet__ctor_" data-uid="C1.Maui.Core.C1OrderedSet.#ctor*"></a>
<h4 id="C1_Maui_Core_C1OrderedSet__ctor" data-uid="C1.Maui.Core.C1OrderedSet.#ctor">C1OrderedSet()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Maui.Core.C1OrderedSet.html">C1OrderedSet</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 C1OrderedSet()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="C1_Maui_Core_C1OrderedSet__ctor_" data-uid="C1.Maui.Core.C1OrderedSet.#ctor*"></a>
<h4 id="C1_Maui_Core_C1OrderedSet__ctor_C1_Maui_Core_IOrderedSet_System_Int32__" data-uid="C1.Maui.Core.C1OrderedSet.#ctor(C1.Maui.Core.IOrderedSet{System.Int32})">C1OrderedSet(IOrderedSet&lt;int&gt;)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Maui.Core.C1OrderedSet.html">C1OrderedSet</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 C1OrderedSet(IOrderedSet&lt;int&gt; set)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New([set] As IOrderedSet(Of 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="C1.Maui.Core.IOrderedSet-1.html">IOrderedSet</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>&gt;</td>
      <td><span class="parametername">set</span></td>
      <td><p>The collection whose elements are copied to the new set.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Maui_Core_C1OrderedSet__ctor_" data-uid="C1.Maui.Core.C1OrderedSet.#ctor*"></a>
<h4 id="C1_Maui_Core_C1OrderedSet__ctor_System_Int32_System_Int32_" data-uid="C1.Maui.Core.C1OrderedSet.#ctor(System.Int32,System.Int32)">C1OrderedSet(int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Maui.Core.C1OrderedSet.html">C1OrderedSet</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 C1OrderedSet(int lowerBound, int upperBound)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(lowerBound As Integer, upperBound 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.int32">int</a></td>
      <td><span class="parametername">lowerBound</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">upperBound</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
