想要徹底了解Lambda表達式
請先了解委托什麼是匿名方法!
一、匿名方法
匿名方法:顯而易見就是沒有方法名的方法。可以用delegate代替方法名。
匿名方法定義如下
public delegate int TestMethod(int x , int y);
class Program
{
public static void Main()
想要徹底了解Lambda表達式
請先了解委托什麼是匿名方法!
匿名方法:顯而易見就是沒有方法名的方法。可以用delegate代替方法名。
匿名方法定義如下
public delegate int TestMethod(int x , int y);
class Program
{
public static void Main()