// Copyright (c) Arlo Godfrey. All Rights Reserved.
// Licensed under the GNU Lesser General Public License, Version 3.0 with additional terms.
// See the LICENSE, LICENSE.LESSER and LICENSE.ADDITIONAL files in the project root for more information.
using System.Collections.Generic;
namespace StrixMusic.Sdk.ViewModels.Helpers.Comparers
{
///
/// A that can be either ascending or descending.
///
/// The type of items compared.
public abstract class InversableComparer : Comparer
{
///
/// Initializes a new instance of the class.
///
/// Sets if the comparer operates in descending order.
public InversableComparer(bool isDescending = false)
{
IsDescending = isDescending;
}
///
/// Gets or sets if items are compared in descending order.
///
public bool IsDescending { get; set; }
}
}