Updated Utilities

This commit is contained in:
Tal Aloni 2016-12-31 13:15:32 +02:00
parent 0ee776be98
commit c73761d36c
6 changed files with 289 additions and 21 deletions

View file

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Utilities
{
public class ReverseComparer<T> : IComparer<T>
{
private IComparer<T> m_comparer;
public ReverseComparer(IComparer<T> comparer)
{
m_comparer = comparer;
}
public int Compare(T x, T y)
{
return m_comparer.Compare(y, x);
}
}
}