static void Main(string[] args) { try { { Console.WriteLine("*************Action + Func"); ActionFunc actionFunc = new ActionFunc(); actionFunc.Show(); } { Console.WriteLine("********************Expression****************"); // 存在于System.Linq.Expression命名空间 ExpressionTest.Show(); } { ExpressionVisitorTest.Show(); } } catch (Exception e) { Console.WriteLine(e.Message); //throw; } Console.Read(); }
static void Main(string[] args) { try { Console.WriteLine("欢迎来到.net高级班vip课程,今晚学习表达式树Expression"); ExpressionTest.Show(); //ExpressionVisitorTest.Show(); } catch (Exception ex) { Console.WriteLine(ex.Message); } Console.Read(); }