I'm looking for something like this:
public void MyCallingMethod()
{
var myObj = new Obj(Context.Method.Name);
}
Or even better....
Would it be possible to determine from myObj what calling method lead to the creation of the object, but this would have to be reliable, because I will be using it for reporting.
Expected result would be "MyCallingMethod" or "MyCallingMethod()" as a string.