This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
namespace Gist | |
{ | |
public sealed class ReverseComparer<T> : IComparer<T> | |
{ | |
public static readonly ReverseComparer<T> Default = new ReverseComparer<T>(Comparer<T>.Default); | |
public static ReverseComparer<T> Reverse(IComparer<T> comparer) | |
{ |