摘要: 有一篇文章写的非常好,纠正了一些常见的理解上的错误:An Intro Constructor in C#要点:constructor 是一个对象的方法,用来初始化对象。可以有多个constructor,但每一个至少有一个constructor initializer(类似于继承,但不是继承,要么base(...) 要么this(...),若没有constructor Initializer,则编译... 阅读全文
posted @ 2007-08-02 11:09 headchen 阅读(3030) 评论(0) 推荐(0) 编辑
摘要: 原文:dotnet学习参考网站学习.Net的经典网站还不错推荐给大家原文——名称:快速入门地址:http://chs.gotdotnet.com/quickstart/描述:本站点是微软.NET技术的快速入门网站,我们不必再安装.NET Framework中的快速入门示例程序,直接在网上查看此示例即看。************************************************... 阅读全文
posted @ 2007-08-02 10:33 headchen 阅读(451) 评论(0) 推荐(0) 编辑
摘要: 本人也是不得其解。还是一篇文章解决了这个问题:The Internals ForEach大致的意思是:为了解决嵌套循环和多线程的问题:需要一个对象来维持当前collection的current,而使得两个循环相互独立而不影响。设想一些如下代码:Array<string> strs = new Array<string>(3)//initialize the arrayfor... 阅读全文
posted @ 2007-08-02 10:31 headchen 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 原文:Generate unique strings and numbers in C# Generate unique strings and numbers in C#By Mads Kristensen TheSystem.Guid is used whenever we need to generate a unique key, but it is very long. That's i... 阅读全文
posted @ 2007-08-02 09:46 headchen 阅读(1113) 评论(0) 推荐(0) 编辑