随笔 - 175
文章 - 35
评论 - 831
11 2007 档案
再试译ScottGu's Posts 之 VS2008之语言特性--查询语法--New "Orcas" Language Feature: Query Syntax
摘要: 学习一门新的语言,总要从其语法学起。为了方便大家学习,同时也为了自己学习,就将ScottGu的这篇关于3.5中增加的新的特性帖子译了出来。这次我翻译采用中汉对照的方式,不然像上次译的那个那样的话不但我自己译起来不方便,大家读起来也觉得不爽。
照原来,先将原贴地址贴出:http://weblogs.asp.net/scottgu/archive/2007/04/21/new-orcas-language-feature-query-syntax.aspx
Now Let's Begin:
Last month I started a series of posts covering some of the new VB and C# language features that are coming as part of the Visual Studio and .NET Framework "Orcas" release. Here are pointers to the first three posts in my serie阅读全文
照原来,先将原贴地址贴出:http://weblogs.asp.net/scottgu/archive/2007/04/21/new-orcas-language-feature-query-syntax.aspx
Now Let's Begin:
Last month I started a series of posts covering some of the new VB and C# language features that are coming as part of the Visual Studio and .NET Framework "Orcas" release. Here are pointers to the first three posts in my serie阅读全文
试着翻译一下ScottGu's Blog,LINQ to SQL (Part 5 - Binding UI using the ASP:LinqDataSource Control)
摘要: 前几天刚学了一点LINQ To Sql,看的是ScottGu's Blog 上的Posts,觉得很是不错,有一种编程模式要发生一次大革命的感觉(呵呵,不知道这种感觉对不对),由于最近项目一直项目比较忙,所以学习的机会很少,今天周六,有了一点时间,可是自己并没有什么新的感受,所以就想试着翻译一下我读的这几篇posts,跟大家分享。有兴趣的朋友可以直接到下面链接上去看e文: http://webl... 阅读全文阅读全文
C#之 VS2008 之 Extension Methods
摘要: 从ScottGu's Blogs上看到了关于Vs2008中.NET Framework3.5语言(Jeffry Zhao说这是 C#3.0的特性,自己见识太短了)的新特性,其中有一个叫做Extension Methods(http://weblogs.asp.net/scottgu/archive/2007/03/13/new-orcas-language-feature-extension-methods.aspx)
这功能让我激动不已。它可以为某一类型的变量(如string,int等)添加上我们自己增加的一些“额外”的方法,比如我们自己为一string 类型的的变量strEmail添加上一个IsValidEmailAddress方法,怎么样?这个方法是否心动?原来我们要实现这个功能着实是会费一番功夫,可是如今有了Extension Methods,很简单即可搞定它:阅读全文
这功能让我激动不已。它可以为某一类型的变量(如string,int等)添加上我们自己增加的一些“额外”的方法,比如我们自己为一string 类型的的变量strEmail添加上一个IsValidEmailAddress方法,怎么样?这个方法是否心动?原来我们要实现这个功能着实是会费一番功夫,可是如今有了Extension Methods,很简单即可搞定它:阅读全文
令人心动的Linq!
摘要: 今天晚上闲来没事,加之上周六把Vs2008Beta2给装上了,就查查相关的Framework3.5的新知识。已经看到Linq这个词很长时间了,可是不知道它是什么。今天查了下,才终于明白,Linq是Language Interaged Query,就是语言集成查询的意思。我只试了一个以下它的小功能,哇,心动地厉害!阅读全文
