Click here to Skip to main content
15,899,025 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi there,
Could anyone please explain me the difference between Ilist and List. I referred some sites but I can't able to understand, someone help me to get clear in this.

Thanks.
Posted

Start here[^]. The posts contain other links that you can also follow.
 
Share this answer
 
IList[^] is a interface class that cannot be used directly. ( IList<string> l = new IList<string>() ) where List<string> can.

Interface is like a promise (or a contract), the class has as minimum this method implement.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900