# C1.Maui.Calendar.DateList

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Maui_Calendar_DateList" data-uid="C1.Maui.Calendar.DateList" class="text-break">DateList Class
</h1>
  <div class="markdown level0 summary"><p>The <a class="xref" href="C1.Maui.Calendar.DateList.html">DateList</a> class represents the observable collection
of <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> values. The collection contains unique
values only. Every item in collection is a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> value
containing the date part only.</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.objectmodel.collection-1">Collection</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a>&gt;</div>
    <div class="level2"><a class="xref" href="C1.Maui.Calendar.ReentrantObservableCollection-1.html">ReentrantObservableCollection</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a>&gt;</div>
    <div class="level3"><span class="xref">DateList</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</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.datetime">DateTime</a>&gt;</div>
    <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.generic.ireadonlylist-1">IReadOnlyList</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</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.datetime">DateTime</a>&gt;</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.collections.specialized.inotifycollectionchanged">INotifyCollectionChanged</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.inotifypropertychanged">INotifyPropertyChanged</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Maui.Calendar.html">C1.Maui.Calendar</a></h6>
  <h6><strong>Assembly</strong>: C1.Maui.Calendar.dll</h6>
  <h5 id="C1_Maui_Calendar_DateList_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DateList : ReentrantObservableCollection&lt;DateTime&gt;, IList&lt;DateTime&gt;, ICollection&lt;DateTime&gt;, IList, ICollection, IReadOnlyList&lt;DateTime&gt;, IReadOnlyCollection&lt;DateTime&gt;, IEnumerable&lt;DateTime&gt;, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DateList
    Inherits ReentrantObservableCollection(Of Date)
    Implements IList(Of Date), ICollection(Of Date), IList, ICollection, IReadOnlyList(Of Date), IReadOnlyCollection(Of Date), IEnumerable(Of Date), IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged</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_Calendar_DateList__ctor" data-uid="C1.Maui.Calendar.DateList.#ctor">
          <a class="xref" href="C1.Maui.Calendar.DateList.-ctor.html#C1_Maui_Calendar_DateList__ctor">DateList()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Maui.Calendar.DateList.html">DateList</a> collection.</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_Calendar_DateList_Add_System_DateTime_" data-uid="C1.Maui.Calendar.DateList.Add(System.DateTime)">
          <a class="xref" href="C1.Maui.Calendar.DateList.Add.html#C1_Maui_Calendar_DateList_Add_System_DateTime_">Add(DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> value to the end of the Collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Maui_Calendar_DateList_Contains_System_DateTime_" data-uid="C1.Maui.Calendar.DateList.Contains(System.DateTime)">
          <a class="xref" href="C1.Maui.Calendar.DateList.Contains.html#C1_Maui_Calendar_DateList_Contains_System_DateTime_">Contains(DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns true if specified item exists in the Collection.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
