Initial commit

This commit is contained in:
github-classroom[bot] 2025-04-24 07:02:41 +00:00 committed by GitHub
commit 1be1863b20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
50 changed files with 6449 additions and 0 deletions

View file

@ -0,0 +1,22 @@
namespace MeetTheTeacher.Model.Comparison;
/// <summary>
/// A comparer which allows sorting <see cref="Teacher" /> instances by their name in either ascending or descending
/// order
/// </summary>
/// <inheritdoc cref="ComparerBase" />
/// <inheritdoc cref="IComparer{Teacher}"/>
public sealed class ByNameComparer : ComparerBase, IComparer<Teacher>
{
/// <summary>
/// Creates a new instance of <see cref="ByNameComparer" /> configured to sort in ascending or descending order
/// </summary>
/// <param name="ascending">Flag indicating if items should be sorted in ascending order; descending if false</param>
public ByNameComparer(bool ascending) : base(ascending) { }
public int Compare(Teacher? x, Teacher? y)
{
// TODO
return -1;
}
}