Пример #1
0
    public int CompareTo(WeeklyEntry other)
    {
        if (ReferenceEquals(this, other))
        {
            return(0);
        }
        if (ReferenceEquals(null, other))
        {
            return(1);
        }
        var weekDayComparison = weekDay.CompareTo(other.weekDay);

        return(string.Compare(Notes, other.Notes, StringComparison.Ordinal));
    }