摘要: 最近没什么事情,复习了下以前几块不熟悉的东西。IEnumerator接口,yield,operatornamespace test{ class Program { static void Main(string[] args) { Console.WriteLine("泛型方法数组遍历"); string[] strList = new string[] { "1", "2", "3", "4", "5" }; ListHelper<string> helper 阅读全文
posted @ 2012-03-16 15:18 Shikyoh 阅读(256) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Runtime.Serialization.Formatters.Binary;using System.IO;namespace TestBinaryFormatter{ class Program { static void Main(string[] args) { //序列化 从内存读取信息流 Book book =... 阅读全文
posted @ 2012-03-16 12:09 Shikyoh 阅读(2536) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using System.Runtime.Serialization.Formatters.Binary;namespace CloneClass{ class Program { static void Main(string[] args) { Results set1 = new Results(); Resul... 阅读全文
posted @ 2012-03-16 11:45 Shikyoh 阅读(596) 评论(0) 推荐(0) 编辑