泛型类
class A<T>{ public T a; }
创建对象时需要指定T的类型
A<int> obj = new A<int>();//int就会替代调T
泛型方法
static T Add<T>(T a,T b){}