# C1.Schedule.DateList

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Schedule_DateList" data-uid="C1.Schedule.DateList" class="text-break">DateList Class
</h1>
  <div class="markdown level0 summary"><p>The <a class="xref" href="C1.Schedule.DateList.html">DateList</a> class is a wrapper for the
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List&lt;T&gt;</a> instance.
At addition of the new value, it cuts off the time part of the value
and ensures that the value is not present in the list yet.</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">DateList</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Schedule.html">C1.Schedule</a></h6>
  <h6><strong>Assembly</strong>: C1.ScheduleCore.dll</h6>
  <h5 id="C1_Schedule_DateList_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DateList</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DateList</code></pre>
  </div>
  <h5 id="C1_Schedule_DateList_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>This class uses binary search for all operations.</p>
</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_Schedule_DateList__ctor" data-uid="C1.Schedule.DateList.#ctor">
          <a class="xref" href="C1.Schedule.DateList.-ctor.html#C1_Schedule_DateList__ctor">DateList()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="C1.Schedule.DateList.html">DateList</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_Schedule_DateList_Count" data-uid="C1.Schedule.DateList.Count">
          <a class="xref" href="C1.Schedule.DateList.Count.html#C1_Schedule_DateList_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the number of items in the wrapped list.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_DateList_Items" data-uid="C1.Schedule.DateList.Items">
          <a class="xref" href="C1.Schedule.DateList.Items.html#C1_Schedule_DateList_Items">Items</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the reference to the wrapped list.</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_Schedule_DateList_Add_System_DateTime_" data-uid="C1.Schedule.DateList.Add(System.DateTime)">
          <a class="xref" href="C1.Schedule.DateList.Add.html#C1_Schedule_DateList_Add_System_DateTime_">Add(DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds new date to the list.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_DateList_Clear" data-uid="C1.Schedule.DateList.Clear">
          <a class="xref" href="C1.Schedule.DateList.Clear.html#C1_Schedule_DateList_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Clears all items from the wrapped list.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_DateList_Contains_System_Collections_Generic_IList_System_DateTime__" data-uid="C1.Schedule.DateList.Contains(System.Collections.Generic.IList{System.DateTime})">
          <a class="xref" href="C1.Schedule.DateList.Contains.html#C1_Schedule_DateList_Contains_System_Collections_Generic_IList_System_DateTime__">Contains(IList&lt;DateTime&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns true if either of specified items exists in the wrapped list.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_DateList_Contains_System_DateTime_" data-uid="C1.Schedule.DateList.Contains(System.DateTime)">
          <a class="xref" href="C1.Schedule.DateList.Contains.html#C1_Schedule_DateList_Contains_System_DateTime_">Contains(DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns true if specified item exists in the wrapped list.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_DateList_Contains_System_DateTime___" data-uid="C1.Schedule.DateList.Contains(System.DateTime[])">
          <a class="xref" href="C1.Schedule.DateList.Contains.html#C1_Schedule_DateList_Contains_System_DateTime___">Contains(DateTime[])</a>
        </td>
        <td class="markdown level1 summary"><p>Returns true if either of specified items exists in the wrapped list.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_DateList_GetNextDate_System_DateTime_" data-uid="C1.Schedule.DateList.GetNextDate(System.DateTime)">
          <a class="xref" href="C1.Schedule.DateList.GetNextDate.html#C1_Schedule_DateList_GetNextDate_System_DateTime_">GetNextDate(DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the first item that is greater than specified one.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_DateList_GetPreviousDate_System_DateTime_" data-uid="C1.Schedule.DateList.GetPreviousDate(System.DateTime)">
          <a class="xref" href="C1.Schedule.DateList.GetPreviousDate.html#C1_Schedule_DateList_GetPreviousDate_System_DateTime_">GetPreviousDate(DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the first item that is less than specified one.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_DateList_Remove_System_DateTime_" data-uid="C1.Schedule.DateList.Remove(System.DateTime)">
          <a class="xref" href="C1.Schedule.DateList.Remove.html#C1_Schedule_DateList_Remove_System_DateTime_">Remove(DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes specified item from the wrapped list.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_DateList_RemoveAt_System_Int32_" data-uid="C1.Schedule.DateList.RemoveAt(System.Int32)">
          <a class="xref" href="C1.Schedule.DateList.RemoveAt.html#C1_Schedule_DateList_RemoveAt_System_Int32_">RemoveAt(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes item at the specified index.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
