标签:string nbsp bsp 函数 enum 约束 ble 泛型类 构造
例 public void Func<T>(string str)where T:class{} 将泛型T约束为类
T:class class约束,约束为引用类型
T:struct struct约束,约束为值类型,除 Nullable 以外的任何值类型如int,bool,enum
T:new(),约束为无参构造函数
..........
标签:string nbsp bsp 函数 enum 约束 ble 泛型类 构造
原文地址:http://www.cnblogs.com/leap-li/p/7676395.html