摘要:
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 阅读全文
摘要:
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... 阅读全文