The content and code of this article is referenced from book Pro C#5.0 and the .NET 4.5 Framework by Apress. The intention of the writing is to review...
分类:
其他好文 时间:
2015-04-02 22:19:34
阅读次数:
130
一、类型、变量、实例之间的关系。 类型》变量》实例 类型可以创建变量,实体类可以创建实例,实例可以存储在变量里。 二、lambda表达式的由来 private void button1_Click(object sender, EventArgs e) { //匿名委托 Func del //类型》...
LINQ的书写格式如下: from 临时变量 in 集合对象或数据库对象 where 条件表达式 [order by条件] select 临时变量中被查询的值 [group by 条件]Lambda表达式的书写格式如下:(参数列表) => 表达式或者语句块其中: 参数个数:可以有...
分类:
数据库 时间:
2015-04-01 17:04:19
阅读次数:
222
练习4-8原文Exercise 4.8. “Named let” is a variant of let that has the form (let )The and are just as in ordinary let, except that is bound within to a procedure whose body is a...
分类:
其他好文 时间:
2015-04-01 11:30:09
阅读次数:
149
练习4-6原文Exercise 4.6. Let expressions are derived expressions, because
(let (( ) … ( )) )
is equivalent to
((lambda ( … ) ) )
Implement a syntactic transformation let->combination that reduces...
分类:
其他好文 时间:
2015-04-01 09:35:32
阅读次数:
153
练习4-7原文Exercise 4.7. Let* is similar to let, except that the bindings of the let variables are performed sequentially from left to right, and each binding is made in an environment in which all of the...
分类:
其他好文 时间:
2015-04-01 09:31:37
阅读次数:
178
??
Struts2的OGNL表达式语言
OGNL是Object-GraphNavigation Language的缩写,全称为对象图导航语言,是一种功能强大的表达式语言,它通过简单一致的语法,可以任意存取对象的属性或者调用对象的方法,能够遍历整个对象的结构图,实现对象属性类型的转换等功能。
OGNL表达式的计算是围绕OGNL上下文进行的。OGNL...
分类:
编程语言 时间:
2015-03-31 16:03:26
阅读次数:
273
在这里我向大家推荐的一个具是LinqPad有了这个工具并熟练使用就可以很快学习并掌握linq安装步骤:使用LINQPad可以很方便的调试linq以及lambda表达式。其中自带了linq以及F#简单入门教程,LINQPad不管你喜不喜欢,反正我喜欢了,呵呵。LINQPad很精简,只有一个exe文件,...
分类:
其他好文 时间:
2015-03-30 18:19:22
阅读次数:
132
Proc 和 lambda 的共同点:语法类似Proc.new{|n| n**2}lambda{|n| n**2}都可以用.call方法调用hello_proc = Proc.new{ puts "Hello!" }hello_proc.call #Hello!hello_lambda = lamb...
分类:
其他好文 时间:
2015-03-30 18:13:50
阅读次数:
104