mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-04-30 10:47:48 +02:00
21 lines
430 B
C#
21 lines
430 B
C#
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);
|
|
}
|
|
}
|
|
}
|