If I wanted to create a method that takes an instance of IList
as a parameter (or any other interface, but let\'s use IList
as an example), I could cre
A couple of differences:
T
could be a value type and still end up being unboxed in the generic form. It's pretty unlikely that this would be the case for IList
, but for other interfaces it's highly plausibleT
isIt really depends on what you're doing of course... unless you actually need to know anything about T
within the method, the only benefit to the generic form is the boxing point.