ASP.net , C#, and VB.net , and Java, and SQL

coding and testing

博客园 首页 新随笔 联系 订阅 管理

2010年11月29日 #

摘要: The System.Collections namespace contains interfaces and classes that define various collections of objects, such as lists, queues, bit arrays, hash tables and dictionaries.Classes http://msdn.micr... 阅读全文
posted @ 2010-11-29 22:26 mr liao 阅读(176) 评论(0) 推荐(0) 编辑

摘要: 在开发中经常会遇到线程的例子,如果某个后台操作比较费时间,我们就可以启动一个线程去执行那个费时的操作,同时程序继续执行。在某些情况下可能会出现多个线程的同步协同的问题,下面的例子就展示了在两个线程之间如何协同工作。 这个程序的思路是共同做一件事情(从一个ArrayList中删除元素),如果执行完成了,两个线程都停止执行。 代码如下: usingSystem; usingSystem.Collect... 阅读全文
posted @ 2010-11-29 22:03 mr liao 阅读(474) 评论(0) 推荐(0) 编辑

摘要: The enum keyword is used to declare an enumeration, a distinct type consisting of a set of named constants called the enumerator list. Every enumeration type has an underlying type, which can be any i... 阅读全文
posted @ 2010-11-29 21:50 mr liao 阅读(312) 评论(0) 推荐(0) 编辑

摘要: I'm gradually moving all my C# articles to the web site for my book, C# in Depth. This article has already moved. I'm leaving the content here so that existing links still work, but I won't be updatin... 阅读全文
posted @ 2010-11-29 21:48 mr liao 阅读(198) 评论(0) 推荐(0) 编辑

摘要: The declaration of a delegate type takes the following form: Copy The delegate keyword is used to declare a reference type that can be used to encapsulate a named or an anonymous method. Delegates a... 阅读全文
posted @ 2010-11-29 21:45 mr liao 阅读(227) 评论(0) 推荐(0) 编辑

摘要: All types and type members have an accessibility level, which controls whether they can be used from other code in your assembly or other assemblies. You can use the following access modifiers to sp... 阅读全文
posted @ 2010-11-29 21:39 mr liao 阅读(417) 评论(0) 推荐(0) 编辑

摘要: The internal keyword is an access modifier for types and type members. Internal types or members are accessible only within files in the same assembly, as in this example:[代码] [代码] For a comparison ... 阅读全文
posted @ 2010-11-29 21:36 mr liao 阅读(347) 评论(0) 推荐(0) 编辑

摘要: Fundamentals of Structures 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--structInteger{privateintval;publicintValue{get{returnval;}set{val=value;}... 阅读全文
posted @ 2010-11-29 21:29 mr liao 阅读(617) 评论(0) 推荐(0) 编辑