摘要: using System;using System.Collections.Generic;using System.Text;namespace 泛型方法{ class Program { static void Main(string[] args) { int i = Finder.Find(new int[] { 1, 2, 3, 4, 5, 6, 7, 8 }, 6); //int i = Finder.Find(new string[] { "1", "2", "3", "4", "5&quo 阅读全文
posted @ 2013-09-17 23:33 cppwen 阅读(210) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;namespace 泛型{ class Program { static void Main(string[] args) { //实例化接口 IGenericl factory = new Factory(); //输出指定泛型的类型 Console.WriteLine(factory.CreateInstan... 阅读全文
posted @ 2013-09-17 23:21 cppwen 阅读(376) 评论(0) 推荐(0) 编辑