我已经快速阅读了Microsoft Lambda Expression文档.
这种例子帮助我更好地理解了:
delegate int del(int i); del myDelegate = x => x * x; int j = myDelegate(5); //j = 25
不过,我不明白为什么会有这样的创新.它只是一种在"方法变量"结束时死亡的方法,对吗?为什么我应该使用它而不是真正的方法?
c# lambda c#-3.0
c# ×1
c#-3.0 ×1
lambda ×1