mirror of
https://github.com/Cekis/SWG-ScriptConverter.git
synced 2026-08-04 04:16:03 -04:00
Add code
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ScriptConverter
|
||||
{
|
||||
public class GenericComparer<T> : IComparer<T>
|
||||
{
|
||||
private Func<T, T, int> _comparer;
|
||||
|
||||
public GenericComparer(Func<T, T, int> comparer)
|
||||
{
|
||||
_comparer = comparer;
|
||||
}
|
||||
|
||||
public int Compare(T x, T y)
|
||||
{
|
||||
return _comparer(x, y);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user