It just depends, do you want your users to be able to index into the data? If yes, use List. Both are interfaces, so you’re not leaking implementation details, really, you just need to decide the minimum functionality needed.
It just depends, do you want your users to be able to index into the data? If yes, use List. Both are interfaces, so you’re not leaking implementation details, really, you just need to decide the minimum functionality needed.