stand on the shoulders of giants
摘要: 1. SynchronizationSimple Blocking MethodsConstructPurposeSleepBlocks for a given time period.JoinWaits for another thread to finish.Locking ConstructsConstructPurposeCross-Process?SpeedlockEnsures jus... 阅读全文
posted @ 2009-06-05 17:41 DylanWind 阅读(2120) 评论(1) 推荐(1) 编辑
摘要: 1. Overview进程是可执行单元,进程由线程组成。进程之间彼此独立,线程共用进程的堆内存,线程有独立的栈内存。现有的系统一般是多进程,多线程的。a. How threading works?线程由thread scheduler来管理,由系统分成time-slicing快速轮转执行(rapidly switching execution between each of the active ... 阅读全文
posted @ 2009-05-27 14:31 DylanWind 阅读(458) 评论(0) 推荐(0) 编辑
摘要: (How to interact between app and configuration file?) 1. Configuration file <?xml version="1.0" encoding="utf-8" ?><StatusTexts> <StatusText>I'm working</St... 阅读全文
posted @ 2009-05-22 16:11 DylanWind 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 一个关于委托的故事 阅读全文
posted @ 2009-05-19 01:38 DylanWind 阅读(275) 评论(0) 推荐(0) 编辑
摘要: ReferenceOrcas中C#语言的新特性:自动属性,对象初始化器,和集合初始化器 新Orcas语言特性:扩展方法 1. 自动属性:publicclassPerson{publicstringFirstName{get;set;}publicstringLastName {get;set;}publicint Age {get;set;}} 当Orcas版中的C#编译器遇上象上面这样的空的ge... 阅读全文
posted @ 2009-05-14 00:46 DylanWind 阅读(1166) 评论(0) 推荐(0) 编辑
摘要: 匿名方法 c#2.0引入匿名方法,不必创建单独的方法,因此减少了所需的编码系统开销。 常用于将委托和匿名方法关联,例如1. 使用委托和方法关联:[代码]2. 使用委托和匿名方法关联:this.btnRefresh.Click+= delegate(objectsender,EventArgse){BindData();};毫无疑问,如果关联的方法是“一句话方法”的话,代码2更为简洁(实际上编译器在背后为我们创建了类似btnRefresh_Click的方法)。匿名方法省略参数列表定义匿名方法时候,参数列表是可以省略的,编译器可以根据委托的签名来确定函数的签名。例如,delegate void F 阅读全文
posted @ 2009-05-13 23:58 DylanWind 阅读(1810) 评论(2) 推荐(0) 编辑
摘要: Reference:http://www.cnblogs.com/allenlooplee/archive/2009/01/14/1375941.html添加引用: using Microsoft.WindowsMobile;using Microsoft.WindowsMobile.PocketOutlook;using Microsoft.WindowsMobile.PocketOutlook... 阅读全文
posted @ 2009-05-11 17:44 DylanWind 阅读(500) 评论(0) 推荐(0) 编辑
摘要: 如标题 阅读全文
posted @ 2009-05-04 16:43 DylanWind 阅读(467) 评论(0) 推荐(0) 编辑
摘要: GPS基础了解 阅读全文
posted @ 2009-04-27 18:07 DylanWind 阅读(580) 评论(0) 推荐(0) 编辑
摘要: Welcome to my website: ilu4e.vicp.net 阅读全文
posted @ 2009-04-24 17:10 DylanWind 阅读(302) 评论(0) 推荐(0) 编辑