摘要: 约束 说明 where T:struct 对于结构约束,类型T必须是值类型 where T:class 类约束指定类型T必须是引用类型 where T:IFoo 指定类型T必须实现接口IFoo where T:Foo 指定类型T必须派生自基类Foo where T:new() 这是一个构造函数约束, 阅读全文
posted @ 2022-09-13 09:29 wzwyc 阅读(87) 评论(0) 推荐(0)