I have a structure like below:
public class BaseClass
{
public string SendError(string Message){
//which method called me
return Message;
}
}
public class TypeAClass : BaseClass
{
public static TypeAClass Instance { get; set;}
public void TestToTest()
{
SendError("Test Message");
}
}
Can I get the method name that calls the SendError() in the SendError method. For example, in this scenario it should give me the name TestToTest()