class TestClass
{
public void Test()
{
//which is faster?
object o1 = MethodRequiringType(typeof(TestClass));
object o2 = MethodRequiringType(this.GetType());
//which is better?
//does it matter?
}
public object MethodRequiringType(Type t)
{
return new { };
}
}
class TestClass { public void Test() { //which is faster? object o1 = MethodRequiringType(typeof(TestClass));
Share
A quick google search revealed this:
and also: