I know that IList
is the interface and List
is the concrete type but I still don't know when to use each one. Is there a better way to decide when to use the interface or the concrete type with some practical scenario.
I want to know why I use IList
and why I use List
in our project.