【发布时间】:2014-02-14 19:56:53
【问题描述】:
interface<T> where T : class
例如
public interface iSend<T> where T : class
上面的代码是什么意思?
为什么要使用这个?
什么时候用这个?
【问题讨论】:
-
你应该阅读 c# 中的泛型而不是质疑它。这是 MSDN 上的文章msdn.microsoft.com/en-us/library/512aeb7t.aspx