What is the difference between the below 2 lines of code?
IList<Product> products = new List<Product>();
List<Product> products = new List<Product>();
I know I'm asking difference between IList
& List
, but what is the difference in above 2 lines of code?
Moreover, what are the advantages/disadvantages one over other? Is there any performance issue?
Simply what happens behind the scenes when using one over other? Thanks!