I am trying to implement IComparer
Interface in my code
public class GenericComparer : IComparer
{
public int Compare(T x, T y)
{
throw NotImplementedException;
}
}
But this throws an error
Error 10 The type or namespace name 'T' could not be found (are you missing a using directive or an assembly reference?)
I have no idea, what's going wron. Can any one point out what I am doing wrong?