StackTrace时
我试过调试服务器。当捕获异常时,在断点上停止,我可以看到它的所有字段,但是在StackTrace中我看到了BadImageFormatException。returnParameter,布尔fetchReturnParameter,在System.Reflection.RuntimeMethodInfo.GetParameters() at System.Diagnostics.StackTrace.ToString
我不知道这是可能还是不可能,但如果有办法这样做,那么请建议。我有一个方法,我用不同的类调用这个方法,那么我如何才能知道(类名)是从哪个方法调用的?public class Employee() protected bool Check() //Here how will I know method name(Test1 or Test2) from which call is made? Please note I can't use any parameter with Check method. pu