上一页 1 ··· 27 28 29 30 31
摘要: //本程序演示了最简单的序列化 和反序列化 ,将对象存储到本地文件中 ,//对象序列化的另一个目的是网络传输信息using System;using System.Collections.Generic;using System.Text;using System.IO;using System.Xml.Serialization;using System.Runtime.Serializatio... 阅读全文
posted @ 2008-07-23 00:05 玄魂 阅读(395) 评论(0) 推荐(0) 编辑
摘要: //默认情况下,基本值类型是不能被赋空值的//可空类型是定义一个基本值类型,使它可以被赋空值 。using System;using System.Collections.Generic;using System.Text;namespace 可空类型{ class Program { static void Main(string[] args) { //在一个值类型的声明中、,加一个类型修饰符... 阅读全文
posted @ 2008-07-07 06:03 玄魂 阅读(189) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;namespace using_定义名称空间或类型的别名{ using A = System.Console;//定义命名空间的别名 using B = using_定义名称空间或类型的别名.Program;//声明类型别名 class Program { static ... 阅读全文
posted @ 2008-07-07 05:50 玄魂 阅读(4132) 评论(0) 推荐(0) 编辑
摘要: //以下示例和说明都源于《visual c# 2005 技术内幕》//匿名函数就是没有名字的函数,是专用于委托的函数。using System;using System.Collections.Generic;using System.Text;namespace 匿名方法{ public delegate void DelegateClass(); public delegate void de... 阅读全文
posted @ 2008-06-30 23:24 玄魂 阅读(1616) 评论(0) 推荐(0) 编辑
上一页 1 ··· 27 28 29 30 31