M
msnews.microsoft.com
In the following classes ... it is possible when calling
MyDerived.Test()
to know that I am calling Test from MyDerived and NOT from MyClass?!
I have tried MethodInfo.GetCurrentMethod().ReflectedType ... but that
returns back MyClass.
public class MyClass
{
public static string Test()
{
}
}
public class MyDerived : MyClass
{
}
MyDerived.Test();
MyDerived.Test()
to know that I am calling Test from MyDerived and NOT from MyClass?!
I have tried MethodInfo.GetCurrentMethod().ReflectedType ... but that
returns back MyClass.
public class MyClass
{
public static string Test()
{
}
}
public class MyDerived : MyClass
{
}
MyDerived.Test();