3 ms·
The point of doing this is not to invoke these members directly on the object, though. It's to allow the object to be passed to anything that expects either ILi
by int_19h 8y ago
The point of doing this is not to invoke these members directly on the object, though. It's to allow the object to be passed to anything that expects either IList<string> or IList<int>, or for runtime discovery purposes with is/as.
Perhaps a better example is something like IConvertibleTo<T>. There's an obvious meaning to a class implementing it for many different Ts.