C#泛型学习笔记 泛型默认值default 如果T是int默认是0 str默认是null public class MyTest<T>{ public T GetValue() { T t = default(T); return t; }}