3 回答

TA貢獻1876條經(jīng)驗 獲得超6個贊
協(xié)方差
IEnumerable<out T>
, Func<out T>
IEnumerable<string>
IEnumerable<object>
Func<string>
Func<object>
string
object
).
反方差
IComparer<in T>
, Action<in T>
IComparer<object>
IComparer<string>
Action<object>
Action<string>
object
string
).
更一般
IFoo<T>
T
IFoo<out T>
T
T
IFoo<in T>
T
Action<T>
T
Action<T>
- 3 回答
- 0 關注
- 602 瀏覽
添加回答
舉報