2 using System
.Reflection
;
3 public static class Test
7 throw new ApplicationException ();
10 public static void Foo ()
18 public static int test2 () {
19 var m
= typeof (Test
).GetMethod ("Foo");
20 int lenStackTrace
= 0;
23 m
.Invoke (null, null);
27 lenStackTrace
= e
.ToString().Length
;
31 m
.Invoke (null, null);
35 if (lenStackTrace
== e
.ToString().Length
)
40 public static int test1 () {
45 } catch (NullReferenceException
) {
51 public static int test (int a
) {
56 } catch (DivideByZeroException ex
) {
71 public static int Main () {