public static void Main() { Exception diffException; Test(() => { diffException = null; try { } catch (Exception ex) { diffException = ex; } finally { } try { } catch { } }); int[] i_a = new int [] { 1, 2, 3 }; Test(() => { foreach (int t in i_a) { } }); Test(() => { Console.WriteLine(typeof(void)); }); Test(() => { Console.WriteLine(typeof(Func <,>)); }); Test(() => { object o = new List <object> { "Hello", "", null, "World", 5 }; }); Test(() => { var v = new MemberAccessData { VolatileValue = 2, StringValues = new string [] { "sv" }, MyTypeProperty = null }; }); }
public static void Main () { Exception diffException; Test (() => { diffException = null; try { } catch (Exception ex) { diffException = ex; } finally { } try { } catch { } }); int[] i_a = new int [] { 1,2,3 }; Test (() => { foreach (int t in i_a) { } }); Test (() => { Console.WriteLine (typeof (void)); }); Test (() => { Console.WriteLine (typeof (Func<,>)); }); Test (() => { object o = new List<object> { "Hello", "", null, "World", 5 }; }); Test (() => { var v = new MemberAccessData { VolatileValue = 2, StringValues = new string [] { "sv" }, MyTypeProperty = null }; }); }
public static void Main() { Exception diffException; Test(() => { diffException = null; try { } catch (Exception ex) { diffException = ex; } finally { } try { } catch { } }); int[] i_a = new int [] { 1, 2, 3 }; Test(() => { foreach (int t in i_a) { } }); Test(() => { Console.WriteLine(typeof(void)); }); Test(() => { Console.WriteLine(typeof(Func <,>)); }); Test(() => { object o = new List <object> { "Hello", "", null, "World", 5 }; }); Test(() => { var v = new MemberAccessData { VolatileValue = 2, StringValues = new string [] { "sv" }, MyTypeProperty = null }; }); Test(x => { switch (x) { case E.E1: goto case E.E2; case E.E2: break; default: break; } }); Test(() => { char ch = default; }); var c = new C(); c.InstanceTests(); }