摘要: 泛型是泛+型,目的是为了节省代码的重复,可以复用代码。 场景: 定义了两个方法(函数) public int DisplayMyInteger(int myInt) { return myInt; } public string DisplayMyString(string myStr) { ... 阅读全文
posted @ 2020-07-15 12:49 司徒无名 阅读(132) 评论(0) 推荐(0) 编辑