随笔分类 -  泛型

 
泛型编程
摘要:一、泛型概念:用起来类似模板,增加代码的复用性。 二、举例说明: 1 public class Program 2 { 3 static void Main(string[] args) 4 { 5 int obj = 2; 6 Test<int> test = new Test<int>(obj) 阅读全文
posted @ 2014-04-10 17:07 寒冷的冬天 阅读(130) 评论(0) 推荐(0)