I\'ve written two equivalent methods:
static bool F(T a, T b) where T : class { return a == b; } static bool F2(A a, A b) { return a == b;
Stop worrying about timing, worry about correctness.
Those methods are not equivalent. One of them uses class A's operator== and the other uses object's operator==.
class A
operator==
object