# C1.Schedule.AppointmentComparer

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Schedule_AppointmentComparer" data-uid="C1.Schedule.AppointmentComparer" class="text-break">AppointmentComparer Class
</h1>
  <div class="markdown level0 summary"><p>Compares <a class="xref" href="C1.Schedule.Appointment.html">Appointment</a> objects by their start time.</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.generic.comparer-1">Comparer</a>&lt;<a class="xref" href="C1.Schedule.Appointment.html">Appointment</a>&gt;</div>
    <div class="level2"><span class="xref">AppointmentComparer</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.icomparer">IComparer</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icomparer-1">IComparer</a>&lt;<a class="xref" href="C1.Schedule.Appointment.html">Appointment</a>&gt;</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_AppointmentComparer_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class AppointmentComparer : Comparer&lt;Appointment&gt;, IComparer, IComparer&lt;Appointment&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class AppointmentComparer
    Inherits Comparer(Of Appointment)
    Implements IComparer, IComparer(Of Appointment)</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_Schedule_AppointmentComparer__ctor" data-uid="C1.Schedule.AppointmentComparer.#ctor">
          <a class="xref" href="C1.Schedule.AppointmentComparer.-ctor.html#C1_Schedule_AppointmentComparer__ctor">AppointmentComparer()</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_Schedule_AppointmentComparer_Default" data-uid="C1.Schedule.AppointmentComparer.Default">
          <a class="xref" href="C1.Schedule.AppointmentComparer.Default.html#C1_Schedule_AppointmentComparer_Default">Default</a>
        </td>
        <td class="markdown level1 summary"><p>Returns an existing instance of <a class="xref" href="C1.Schedule.AppointmentComparer.html">AppointmentComparer</a> class if any;
or creates a new one.</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_AppointmentComparer_Compare_C1_Schedule_Appointment_C1_Schedule_Appointment_" data-uid="C1.Schedule.AppointmentComparer.Compare(C1.Schedule.Appointment,C1.Schedule.Appointment)">
          <a class="xref" href="C1.Schedule.AppointmentComparer.Compare.html#C1_Schedule_AppointmentComparer_Compare_C1_Schedule_Appointment_C1_Schedule_Appointment_">Compare(Appointment, Appointment)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs a comparison of two <a class="xref" href="C1.Schedule.Appointment.html">Appointment</a> objects and returns
a value indicating whether the one <a class="xref" href="C1.Schedule.Appointment.html">Appointment</a> starts earlier,
at the same time, or later than the other.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
