I need to create generic method which returns greater of two params. Operators > and < don't work. Here is signature of my method:
public static T Greater<T>(ref T a, ref T b)
{
if (a > b)
{
return a;
}
else
{
return b;
}
}
I'm quite rookie in C# and totally new in generic types.