简单实用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());
}
}
}
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());
}
}
}
相关文章推荐
- ActionScript3.0的正则表达式简单实用例程
- javascript正则表达式简单实用实例
- 简单实用的UltraEdit的正则表达式手册
- JavaScript正则表达式简单实用实例
- 简单实用的UltraEdit的正则表达式手册
- Javascript url地址传参及获取参数的简单实用方法(利用正则表达式)
- Linq和Lamda表达式的简单处理方式
- C++ 正则表达式的简单实用
- java---正则表达式的字符串简单实用及扩展链接
- Zen coding速查,最简单实用的几个表达式。
- [Swust OJ 322]--东6宿舍灵异事件(中缀表达式转化为后缀表达式的简单运用)
- 简单说说:ognl表达式语言和EL表达式语言的区别(无代码例子)
- iOS边练边学--多线程介绍、NSThread的简单实用、线程安全以及线程之间的通信
- Struts2自带的上传方法(简单实用)案例图片上传,文件也可,
- 复习-File对象简单实用
- 向广大程序员推荐的简单实用的健身方法。
- delegate及 lamda表达式
- 简单实用的快捷键总结
- FlexGrid控件的简单实用
- c#3.5关于JSON简单操作的实用帮助类(泛型实现)