<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_Technological achievements dream_分类_C#3.0笔记</title><id>http://feed.cnblogs.com/blog/u/33262/category/191008/rss</id><updated>2012-05-27T15:27:59Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Henllyee/category/191008.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/33262/category/191008/rss"/><entry><id>http://www.cnblogs.com/Henllyee/archive/2009/05/30/1492397.html</id><title type="text">C#3.0笔记(四)对象初始化器与匿名类型</title><summary type="text">在上一篇文章中介绍过C#3.0的新特性var关键字已经扩展方法，这一篇blog中将会介绍下对象初始化器以及匿名类型。 初识对象初始化器 首先我们来看一个Employee类型: public class Employee { public string FirstName{ get; set; } public string LastName { get; set; } public int Age...</summary><published>2009-05-30T12:22:00Z</published><updated>2009-05-30T12:22:00Z</updated><author><name>Henry Cui</name><uri>http://www.cnblogs.com/Henllyee/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Henllyee/archive/2009/05/30/1492397.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Henllyee/archive/2009/05/30/1492397.html"/><content type="text">在上一篇文章中介绍过C#3.0的新特性var关键字已经扩展方法，这一篇blog中将会介绍下对象初始化器以及匿名类型。 初识对象初始化器 首先我们来看一个Employee类型: public class Employee { public string FirstName{ get; set; } public string LastName { get; set; } public int Age...</content></entry><entry><id>http://www.cnblogs.com/Henllyee/archive/2009/05/17/1458967.html</id><title type="text">C#3.0笔记(三)var关键字与扩展方法</title><summary type="text">从这篇blog开始真正开始关心3.0里面的特性，本篇主要介绍下Var关键字与扩展方法。 初识var关键字 C#3.0中为我们提供了var关键字来定义隐式化的局部变量，定义方式: var i = 0; var myBool = true; var myString = "Henllyee";其实在使用var关键字时，编译器会根据初始化变量的变量值来推断变量的数据类型，我们可以通过IL来看下上面几句代...</summary><published>2009-05-17T13:26:00Z</published><updated>2009-05-17T13:26:00Z</updated><author><name>Henry Cui</name><uri>http://www.cnblogs.com/Henllyee/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Henllyee/archive/2009/05/17/1458967.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Henllyee/archive/2009/05/17/1458967.html"/><content type="text">从这篇blog开始真正开始关心3.0里面的特性，本篇主要介绍下Var关键字与扩展方法。 初识var关键字 C#3.0中为我们提供了var关键字来定义隐式化的局部变量，定义方式: var i = 0; var myBool = true; var myString = "Henllyee";其实在使用var关键字时，编译器会根据初始化变量的变量值来推断变量的数据类型，我们可以通过IL来看下上面几句代...</content></entry><entry><id>http://www.cnblogs.com/Henllyee/archive/2009/04/25/1443652.html</id><title type="text">C#3.0笔记(二)预备知识之委托与事件</title><summary type="text">在上篇blog中简单地介绍了委托的基础知识，在这片文章中会介绍下委托跟事件之间的联系。 事件的由来 我们可以看到在使用委托进行回调的实现的时候，我们往往需要再定义一个委托对象，以及一个对外公开的辅助方法来添加委托的方法，这样子会使我们感觉比较繁琐。C#提供了event关键字来减轻直接使用委托的负担，编译器会自动提供注册、取消注册的方法和委托必要的成员。首先来看看定义事件的步骤： 1.先定义委托类型...</summary><published>2009-04-25T14:50:00Z</published><updated>2009-04-25T14:50:00Z</updated><author><name>Henry Cui</name><uri>http://www.cnblogs.com/Henllyee/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Henllyee/archive/2009/04/25/1443652.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Henllyee/archive/2009/04/25/1443652.html"/><content type="text">在上篇blog中简单地介绍了委托的基础知识，在这片文章中会介绍下委托跟事件之间的联系。 事件的由来 我们可以看到在使用委托进行回调的实现的时候，我们往往需要再定义一个委托对象，以及一个对外公开的辅助方法来添加委托的方法，这样子会使我们感觉比较繁琐。C#提供了event关键字来减轻直接使用委托的负担，编译器会自动提供注册、取消注册的方法和委托必要的成员。首先来看看定义事件的步骤： 1.先定义委托类型...</content></entry><entry><id>http://www.cnblogs.com/Henllyee/archive/2009/04/05/1430028.html</id><title type="text">C#3.0笔记(一)预备知识之Delegate</title><summary type="text">在学习C#3.0之前还是先来回顾下委托、事件，因为这样能更加有助于理解C#3.0里面的一些新的特性，如Lambada表达式等。背景在C语言中我们可以用函数指针来创建回调函数，但是在C里面回调函数存在一些安全问题。因为它只是在内存地址中记录了下来，并没有像方法的参数类型、参数个数、返回值等其他安全信息。而在.Net FrameWork中，回调仍然是可以的，.net framework中提供了更为高级...</summary><published>2009-04-05T14:52:00Z</published><updated>2009-04-05T14:52:00Z</updated><author><name>Henry Cui</name><uri>http://www.cnblogs.com/Henllyee/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Henllyee/archive/2009/04/05/1430028.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Henllyee/archive/2009/04/05/1430028.html"/><content type="text">在学习C#3.0之前还是先来回顾下委托、事件，因为这样能更加有助于理解C#3.0里面的一些新的特性，如Lambada表达式等。背景在C语言中我们可以用函数指针来创建回调函数，但是在C里面回调函数存在一些安全问题。因为它只是在内存地址中记录了下来，并没有像方法的参数类型、参数个数、返回值等其他安全信息。而在.Net FrameWork中，回调仍然是可以的，.net framework中提供了更为高级...</content></entry></feed>
