0
Does anyone know the difference between it ? When should I use IList
and List
Follows code:
Ilist:
public ActionResult Upload_Photo(IList<HttpPostedFileBase> file_photo)
List:
public ActionResult Upload_Photo(List<HttpPostedFileBase> file_photo)
Some say it is considered bad to expose the Lista <T>
. Because ?
Related: Programming for the interface means programming for a super-type, because?
– Jéf Bueno
Related: Programming for interface and not for implementation, why?
– Jéf Bueno