摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1usingSystem;2usingSystem.Collections.Generic;3usingSystem.Text;4usingSystem.Data;5usingSystem.Confi... 阅读全文
posted @ 2010-07-04 02:45 Kevin.Cheung 阅读(1151) 评论(0) 推荐(0) 编辑
摘要: 面向对象思想有三个核心要素:封装、继承与多态。如能正确理解这三要素,那么基本上可以算是在编程中建立了面向对象思想。在第二节中我曾介绍,在 C#中,所有数据类型的实例都是“对象”,不过最能体现对象特质的类型,还是“类”,同时它也是C#中最重要、最频繁使用的类型。接下来,我将通过介绍 C#的类,来充分理解对象封装的概念。所谓“对象”... 阅读全文
posted @ 2010-07-04 02:38 Kevin.Cheung 阅读(683) 评论(0) 推荐(1) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-- //写入  protectedvoidButton1_Click(objectsender,EventArgse)  {    HttpCookiecookie=newHttpCookie("MyC... 阅读全文
posted @ 2010-07-04 02:25 Kevin.Cheung 阅读(41872) 评论(2) 推荐(7) 编辑