您的位置:首页 > 其它

简单实用lamda表达式

2013-10-11 18:55 176 查看
using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

namespace ConsoleApplication1

{

class Program

{

delegate int del(int i);

static del myDelegate = x => x * x;

static int j = myDelegate(5);

static void Main(string[] args)

{

Console.WriteLine(j.ToString());

}

}

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: