摘要: 值类型和引用类型 在c#内置基本类型当中,除了object和string外,都是引用类型。同时,自己定义的类,也都是引用类型。因为自定义类全部继承自System.Object。 值传递和引用传递 创建控制台程序文件:ValueAndReference.cs 阅读全文
posted @ 2009-01-06 15:56 无尽思绪 阅读(2893) 评论(2) 推荐(0) 编辑
摘要: 简单一句话:将值类型的变量转换为对象的过程称为“装箱”。将对象类型的变量转换为值类型的过程称为“拆箱”。 阅读全文
posted @ 2009-01-06 15:15 无尽思绪 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 实例演示该类型的使用 阅读全文
posted @ 2009-01-06 15:08 无尽思绪 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 实例演示该类型的使用 阅读全文
posted @ 2009-01-06 15:03 无尽思绪 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 实例演示该类型的使用 阅读全文
posted @ 2009-01-06 14:59 无尽思绪 阅读(6410) 评论(0) 推荐(0) 编辑
摘要: 类型总参考地址:http://msdn.microsoft.com/zh-cn/library/ya5y69ds(VS.80).aspx CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Co... 阅读全文
posted @ 2009-01-06 14:43 无尽思绪 阅读(4665) 评论(0) 推荐(0) 编辑
摘要: 创建控制台程序,复制一下代码覆盖Program.cs,然后直接按F5运行,并查看结果。 CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using S... 阅读全文
posted @ 2009-01-06 14:27 无尽思绪 阅读(9040) 评论(3) 推荐(0) 编辑
摘要: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Configuration;using System.Data;using System.Linq;using System.Web;usin... 阅读全文
posted @ 2009-01-06 13:43 无尽思绪 阅读(344) 评论(0) 推荐(0) 编辑
摘要: ascx文件类似于HTML文件,但是有一些特殊的asp.net表示。 必须的: 这个语句一般是在文件的第一行。 用来指定一些指令 用来写c#代码 用来输出value变量的值 用来绑定字段 Field的值。 注释 Example: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://w... 阅读全文
posted @ 2009-01-06 13:28 无尽思绪 阅读(764) 评论(0) 推荐(1) 编辑