# C1.Win.Command.C1Stack

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Command_C1Stack" data-uid="C1.Win.Command.C1Stack" class="text-break">C1Stack Class
</h1>
  <div class="markdown level0 summary"><p>Simple stack with indexed access, based on System.Collections.ArrayList</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"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.arraylist">ArrayList</a></div>
    <div class="level2"><span class="xref">C1Stack</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.icollection">ICollection</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Command.html">C1.Win.Command</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.Command.10.dll</h6>
  <h5 id="C1_Win_Command_C1Stack_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1Stack : ArrayList, IList, ICollection, IEnumerable, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1Stack
    Inherits ArrayList
    Implements IList, ICollection, IEnumerable, ICloneable</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_Win_Command_C1Stack__ctor" data-uid="C1.Win.Command.C1Stack.#ctor">
          <a class="xref" href="C1.Win.Command.C1Stack.-ctor.html#C1_Win_Command_C1Stack__ctor">C1Stack()</a>
        </td>
        <td class="markdown level1 summary"></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_Win_Command_C1Stack_IsEmpty" data-uid="C1.Win.Command.C1Stack.IsEmpty">
          <a class="xref" href="C1.Win.Command.C1Stack.IsEmpty.html#C1_Win_Command_C1Stack_IsEmpty">IsEmpty</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the <a class="xref" href="C1.Win.Command.C1Stack.html">C1Stack</a> is empty.
Returns true if the <a class="xref" href="C1.Win.Command.C1Stack.html">C1Stack</a> ArrayList is empty, false otherwise.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Command_C1Stack_Length" data-uid="C1.Win.Command.C1Stack.Length">
          <a class="xref" href="C1.Win.Command.C1Stack.Length.html#C1_Win_Command_C1Stack_Length">Length</a>
        </td>
        <td class="markdown level1 summary"><p>The number of elements actually contained in <a class="xref" href="C1.Win.Command.C1Stack.html">C1Stack</a> ArrayList.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Command_C1Stack_Top" data-uid="C1.Win.Command.C1Stack.Top">
          <a class="xref" href="C1.Win.Command.C1Stack.Top.html#C1_Win_Command_C1Stack_Top">Top</a>
        </td>
        <td class="markdown level1 summary"><p>The last element in <a class="xref" href="C1.Win.Command.C1Stack.html">C1Stack</a>.</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_Win_Command_C1Stack_IsIndexInBounds_System_Int32_" data-uid="C1.Win.Command.C1Stack.IsIndexInBounds(System.Int32)">
          <a class="xref" href="C1.Win.Command.C1Stack.IsIndexInBounds.html#C1_Win_Command_C1Stack_IsIndexInBounds_System_Int32_">IsIndexInBounds(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the index of an item is in the bound of indexes of the <a class="xref" href="C1.Win.Command.C1Stack.html">C1Stack</a> ArrayList.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Command_C1Stack_Peek" data-uid="C1.Win.Command.C1Stack.Peek">
          <a class="xref" href="C1.Win.Command.C1Stack.Peek.html#C1_Win_Command_C1Stack_Peek">Peek()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the last element in <a class="xref" href="C1.Win.Command.C1Stack.html">C1Stack</a> ArrayList.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Command_C1Stack_Pop" data-uid="C1.Win.Command.C1Stack.Pop">
          <a class="xref" href="C1.Win.Command.C1Stack.Pop.html#C1_Win_Command_C1Stack_Pop">Pop()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the element at the specified index of the <a class="xref" href="C1.Win.Command.C1Stack.html">C1Stack</a> ArrayList.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Command_C1Stack_Push_System_Object_" data-uid="C1.Win.Command.C1Stack.Push(System.Object)">
          <a class="xref" href="C1.Win.Command.C1Stack.Push.html#C1_Win_Command_C1Stack_Push_System_Object_">Push(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds an object to the end of the <a class="xref" href="C1.Win.Command.C1Stack.html">C1Stack</a> ArrayList.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
