Is it possible?
I want to get a class name (e.g. foo) that calls my method (e.g. myMethod)
(and the method is in another class (e.g. i))
as:
class foo
{
i mc=new i;
mc.mymethod();
}
class i
{
myMethod()
{........
Console.WriteLine(InvokerClassName);
}
}
early
source
share