摘要:
这是类型参数约束,where表名了对类型变量T的约束关系。where T:A 表示类型变量是继承于A的,或者是A本省。where T: new()指明了创建T的实例应该使用的构造函数。 .NET支持的类型参数约束有以下五种: where T: struct T必须是一个结构类型 where T: c 阅读全文
posted @ 2021-08-20 14:19
topguntopgun
阅读(349)
评论(0)
推荐(0)

浙公网安备 33010602011771号