# C1.Maui.Core.C1OrderedSet

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Maui_Core_C1OrderedSet" data-uid="C1.Maui.Core.C1OrderedSet" class="text-break">C1OrderedSet Class
</h1>
  <div class="markdown level0 summary"><p>Collection of ordered <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">C1OrderedSet</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><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;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Maui.Core.html">C1.Maui.Core</a></h6>
  <h6><strong>Assembly</strong>: C1.Maui.Core.dll</h6>
  <h5 id="C1_Maui_Core_C1OrderedSet_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1OrderedSet : IOrderedSet&lt;int&gt;, ICollection&lt;int&gt;, IEnumerable&lt;int&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1OrderedSet
    Implements IOrderedSet(Of Integer), ICollection(Of Integer), IEnumerable(Of Integer), IEnumerable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Maui_Core_C1OrderedSet__ctor" data-uid="C1.Maui.Core.C1OrderedSet.#ctor">
          <a class="xref" href="C1.Maui.Core.C1OrderedSet.-ctor.html#C1_Maui_Core_C1OrderedSet__ctor">C1OrderedSet()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Maui.Core.C1OrderedSet.html">C1OrderedSet</a> class.</p>
</td>
      </tr>
      <tr>
        <td 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})">
          <a class="xref" href="C1.Maui.Core.C1OrderedSet.-ctor.html#C1_Maui_Core_C1OrderedSet__ctor_C1_Maui_Core_IOrderedSet_System_Int32__">C1OrderedSet(IOrderedSet&lt;int&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Maui.Core.C1OrderedSet.html">C1OrderedSet</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Maui_Core_C1OrderedSet__ctor_System_Int32_System_Int32_" data-uid="C1.Maui.Core.C1OrderedSet.#ctor(System.Int32,System.Int32)">
          <a class="xref" href="C1.Maui.Core.C1OrderedSet.-ctor.html#C1_Maui_Core_C1OrderedSet__ctor_System_Int32_System_Int32_">C1OrderedSet(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Maui.Core.C1OrderedSet.html">C1OrderedSet</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Maui_Core_C1OrderedSet_Count" data-uid="C1.Maui.Core.C1OrderedSet.Count">
          <a class="xref" href="C1.Maui.Core.C1OrderedSet.Count.html#C1_Maui_Core_C1OrderedSet_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of elements contained in the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection&lt;T&gt;</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Maui_Core_C1OrderedSet_IsReadOnly" data-uid="C1.Maui.Core.C1OrderedSet.IsReadOnly">
          <a class="xref" href="C1.Maui.Core.C1OrderedSet.IsReadOnly.html#C1_Maui_Core_C1OrderedSet_IsReadOnly">IsReadOnly</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection&lt;T&gt;</a> is read-only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Maui_Core_C1OrderedSet_Item_System_Int32_" data-uid="C1.Maui.Core.C1OrderedSet.Item(System.Int32)">
          <a class="xref" href="C1.Maui.Core.C1OrderedSet.Item.html#C1_Maui_Core_C1OrderedSet_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Maui_Core_C1OrderedSet_Ranges" data-uid="C1.Maui.Core.C1OrderedSet.Ranges">
          <a class="xref" href="C1.Maui.Core.C1OrderedSet.Ranges.html#C1_Maui_Core_C1OrderedSet_Ranges">Ranges</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the ranges of the set.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Maui_Core_C1OrderedSet_Add_C1_Maui_Core_C1OrderedSet_" data-uid="C1.Maui.Core.C1OrderedSet.Add(C1.Maui.Core.C1OrderedSet)">
          <a class="xref" href="C1.Maui.Core.C1OrderedSet.Add.html#C1_Maui_Core_C1OrderedSet_Add_C1_Maui_Core_C1OrderedSet_">Add(C1OrderedSet)</a>
        </td>
        <td class="markdown level1 summary"><p>Joins the specified set.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Maui_Core_C1OrderedSet_Add_System_Int32_" data-uid="C1.Maui.Core.C1OrderedSet.Add(System.Int32)">
          <a class="xref" href="C1.Maui.Core.C1OrderedSet.Add.html#C1_Maui_Core_C1OrderedSet_Add_System_Int32_">Add(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds an item to the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection&lt;T&gt;</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Maui_Core_C1OrderedSet_AddRange_System_Int32_System_Int32_" data-uid="C1.Maui.Core.C1OrderedSet.AddRange(System.Int32,System.Int32)">
          <a class="xref" href="C1.Maui.Core.C1OrderedSet.AddRange.html#C1_Maui_Core_C1OrderedSet_AddRange_System_Int32_System_Int32_">AddRange(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a range of elements.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Maui_Core_C1OrderedSet_Clear" data-uid="C1.Maui.Core.C1OrderedSet.Clear">
          <a class="xref" href="C1.Maui.Core.C1OrderedSet.Clear.html#C1_Maui_Core_C1OrderedSet_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes all items from the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection&lt;T&gt;</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Maui_Core_C1OrderedSet_Contains_System_Int32_" data-uid="C1.Maui.Core.C1OrderedSet.Contains(System.Int32)">
          <a class="xref" href="C1.Maui.Core.C1OrderedSet.Contains.html#C1_Maui_Core_C1OrderedSet_Contains_System_Int32_">Contains(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection&lt;T&gt;</a> contains a specific value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Maui_Core_C1OrderedSet_CopyTo_System_Int32___System_Int32_" data-uid="C1.Maui.Core.C1OrderedSet.CopyTo(System.Int32[],System.Int32)">
          <a class="xref" href="C1.Maui.Core.C1OrderedSet.CopyTo.html#C1_Maui_Core_C1OrderedSet_CopyTo_System_Int32___System_Int32_">CopyTo(int[], int)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the elements of the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection&lt;T&gt;</a> to an <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.array">Array</a>, starting at a particular <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.array">Array</a> index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Maui_Core_C1OrderedSet_Exclude_C1_Maui_Core_IOrderedSet_System_Int32__C1_Maui_Core_IOrderedSet_System_Int32__" data-uid="C1.Maui.Core.C1OrderedSet.Exclude(C1.Maui.Core.IOrderedSet{System.Int32},C1.Maui.Core.IOrderedSet{System.Int32})">
          <a class="xref" href="C1.Maui.Core.C1OrderedSet.Exclude.html#C1_Maui_Core_C1OrderedSet_Exclude_C1_Maui_Core_IOrderedSet_System_Int32__C1_Maui_Core_IOrderedSet_System_Int32__">Exclude(IOrderedSet&lt;int&gt;, IOrderedSet&lt;int&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the set resulting of subtracting the <code class="paramref">excludedSet</code> from <code class="paramref">baseSet</code>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Maui_Core_C1OrderedSet_GetEnumerator" data-uid="C1.Maui.Core.C1OrderedSet.GetEnumerator">
          <a class="xref" href="C1.Maui.Core.C1OrderedSet.GetEnumerator.html#C1_Maui_Core_C1OrderedSet_GetEnumerator">GetEnumerator()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns an enumerator that iterates through the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Maui_Core_C1OrderedSet_Intersection_C1_Maui_Core_IOrderedSet_System_Int32__C1_Maui_Core_IOrderedSet_System_Int32__" data-uid="C1.Maui.Core.C1OrderedSet.Intersection(C1.Maui.Core.IOrderedSet{System.Int32},C1.Maui.Core.IOrderedSet{System.Int32})">
          <a class="xref" href="C1.Maui.Core.C1OrderedSet.Intersection.html#C1_Maui_Core_C1OrderedSet_Intersection_C1_Maui_Core_IOrderedSet_System_Int32__C1_Maui_Core_IOrderedSet_System_Int32__">Intersection(IOrderedSet&lt;int&gt;, IOrderedSet&lt;int&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the intersection between 2 sets.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Maui_Core_C1OrderedSet_Intersects_C1_Maui_Core_IOrderedSet_System_Int32__C1_Maui_Core_IOrderedSet_System_Int32__" data-uid="C1.Maui.Core.C1OrderedSet.Intersects(C1.Maui.Core.IOrderedSet{System.Int32},C1.Maui.Core.IOrderedSet{System.Int32})">
          <a class="xref" href="C1.Maui.Core.C1OrderedSet.Intersects.html#C1_Maui_Core_C1OrderedSet_Intersects_C1_Maui_Core_IOrderedSet_System_Int32__C1_Maui_Core_IOrderedSet_System_Int32__">Intersects(IOrderedSet&lt;int&gt;, IOrderedSet&lt;int&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns whether 2 sets intersects.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Maui_Core_C1OrderedSet_Parse_System_String_" data-uid="C1.Maui.Core.C1OrderedSet.Parse(System.String)">
          <a class="xref" href="C1.Maui.Core.C1OrderedSet.Parse.html#C1_Maui_Core_C1OrderedSet_Parse_System_String_">Parse(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Parses the text with the format '1-3,5-7,9,13' and returns the <a class="xref" href="C1.Maui.Core.C1OrderedSet.html">C1OrderedSet</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Maui_Core_C1OrderedSet_Remove_C1_Maui_Core_C1OrderedSet_" data-uid="C1.Maui.Core.C1OrderedSet.Remove(C1.Maui.Core.C1OrderedSet)">
          <a class="xref" href="C1.Maui.Core.C1OrderedSet.Remove.html#C1_Maui_Core_C1OrderedSet_Remove_C1_Maui_Core_C1OrderedSet_">Remove(C1OrderedSet)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the specified items.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Maui_Core_C1OrderedSet_Remove_System_Int32_" data-uid="C1.Maui.Core.C1OrderedSet.Remove(System.Int32)">
          <a class="xref" href="C1.Maui.Core.C1OrderedSet.Remove.html#C1_Maui_Core_C1OrderedSet_Remove_System_Int32_">Remove(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the first occurrence of a specific object from the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection&lt;T&gt;</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Maui_Core_C1OrderedSet_RemoveRange_System_Int32_System_Int32_" data-uid="C1.Maui.Core.C1OrderedSet.RemoveRange(System.Int32,System.Int32)">
          <a class="xref" href="C1.Maui.Core.C1OrderedSet.RemoveRange.html#C1_Maui_Core_C1OrderedSet_RemoveRange_System_Int32_System_Int32_">RemoveRange(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes a range of elements.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Maui_Core_C1OrderedSet_ToString" data-uid="C1.Maui.Core.C1OrderedSet.ToString">
          <a class="xref" href="C1.Maui.Core.C1OrderedSet.ToString.html#C1_Maui_Core_C1OrderedSet_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> that represents the current <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Maui_Core_C1OrderedSet_TryParse_System_String_C1_Maui_Core_C1OrderedSet__" data-uid="C1.Maui.Core.C1OrderedSet.TryParse(System.String,C1.Maui.Core.C1OrderedSet@)">
          <a class="xref" href="C1.Maui.Core.C1OrderedSet.TryParse.html#C1_Maui_Core_C1OrderedSet_TryParse_System_String_C1_Maui_Core_C1OrderedSet__">TryParse(string, out C1OrderedSet)</a>
        </td>
        <td class="markdown level1 summary"><p>Tries to parse the text with the format '1-3,5-7,9,13' and return the <a class="xref" href="C1.Maui.Core.C1OrderedSet.html">C1OrderedSet</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="operators">Operators
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Maui_Core_C1OrderedSet_op_Implicit_System_Int32__C1_Maui_Core_C1OrderedSet" data-uid="C1.Maui.Core.C1OrderedSet.op_Implicit(System.Int32)~C1.Maui.Core.C1OrderedSet">
          <a class="xref" href="C1.Maui.Core.C1OrderedSet.op_Implicit.html#C1_Maui_Core_C1OrderedSet_op_Implicit_System_Int32__C1_Maui_Core_C1OrderedSet">implicit operator C1OrderedSet(int)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Maui_Core_C1OrderedSet_op_Implicit_System_Int32____C1_Maui_Core_C1OrderedSet" data-uid="C1.Maui.Core.C1OrderedSet.op_Implicit(System.Int32[])~C1.Maui.Core.C1OrderedSet">
          <a class="xref" href="C1.Maui.Core.C1OrderedSet.op_Implicit.html#C1_Maui_Core_C1OrderedSet_op_Implicit_System_Int32____C1_Maui_Core_C1OrderedSet">implicit operator C1OrderedSet(int[])</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Maui_Core_C1OrderedSet_op_Implicit_System_String__C1_Maui_Core_C1OrderedSet" data-uid="C1.Maui.Core.C1OrderedSet.op_Implicit(System.String)~C1.Maui.Core.C1OrderedSet">
          <a class="xref" href="C1.Maui.Core.C1OrderedSet.op_Implicit.html#C1_Maui_Core_C1OrderedSet_op_Implicit_System_String__C1_Maui_Core_C1OrderedSet">implicit operator C1OrderedSet(string)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
