随笔分类 -  .NET

摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;namespace StreamReadWrite{ class Program { static void Main(string[] args) { // Get the directories currently on the C drive. DirectoryInfo[] cDirs = new Direct... 阅读全文
posted @ 2013-04-08 12:04 ScottChiang 阅读(196) 评论(0) 推荐(1)
摘要:实现C#XML序列化技术使用到什么具体的方法呢?我们在具体的操作过程中需要注意什么呢?那么这里向你展示一个Demo,希望对你了解C#XML序列化技术有所帮助。 首先,我们定义一个需要序列化的对象:using System; namespace XMLSerializer{ public class TestXML { public string name; public string sex; public string age; }} 然后我们就可以在程序中使用这个类构造对象,C#XML序列化。 private void button1_Click( obj... 阅读全文
posted @ 2013-04-08 12:00 ScottChiang 阅读(349) 评论(0) 推荐(0)