摘要: 作用: 使用泛型可以实现算法重用。 泛型约束: Myclass<T> where T : struct 必须值类型 / :class 必须引用类型 多个: Myclass<T,K,W,R,P> where T: struct where K :class where W : 接口 必须实现某个接口 阅读全文
posted @ 2019-03-17 21:13 张玉昊 阅读(134) 评论(0) 推荐(0) 编辑