摘要:
1.1 Lambda 表达式1.1.1 创建委托或表达式树“Lambda 表达式”是一个匿名函数,它可以包含表达式和语句,并且可用于创建委托或表达式树类型。 class Program { static void Main(string[] args) { del myDelegate = x => x * x; int j = myDelegate(5); //得到j = 25 Console.WriteLine(j); Console.Read(); } } delegate int del(int i); class Program { static void Main(strin 阅读全文
posted @ 2011-09-27 21:43
易独
阅读(332)
评论(0)
推荐(0)

浙公网安备 33010602011771号