摘要: 这是参数类型约束,指定T必须是Class类型。 .NET支持的类型参数约束有以下五种: where T : struct | T必须是一个结构类型 where T : class | T必须是一个Class类型 where T : new() | T必须要有一个无参构造函数(构造函数约束) wher 阅读全文
posted @ 2017-02-08 14:19 FlyNoah 阅读(249) 评论(0) 推荐(0) 编辑