Suppose I have the following situation:
9 class Program 10 { 11 public static void WrapperMethod(Action func) 12 { 13 try 14 { 15
I run it and have the following output:
at TestExceptions.Program.<Main>b__0() in c:\users\administrator\documents\visual studio 2010\Projects\TestExceptions\TestExceptions\Program.cs:line 26 at TestExceptions.Program.WrapperMethod(Action func) in c:\users\administrator\documents\visual studio 2010\Projects\TestExceptions\TestExceptions\Program.cs:line 16
If I uncomment, throw a new exception ("Case 1"); exit:
at TestExceptions.Program.WrapperMethod(Action func) in c:\users\administrator\documents\visual studio 2010\Projects\TestExceptions\TestExceptions\Program.cs:line 15
So my question is why in the first case I see the full path, including the main function, while in the second case I do not see the same material. How can I display more complete information if the production code is similar to the second scenario.
c # clr
Eugeniu torica
source share