为什么这样做?我不是在抱怨,只是想知道.
void Test() { int a = 1; int b = 2; What<int>(a, b); // Why does this next line work? What(a, b); } void What<T>(T a, T b) { }
.net c# generics type-inference
.net ×1
c# ×1
generics ×1
type-inference ×1