Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Good Day,

I am a beginner and i want to get an understanding from the question below,

What is the difference between List and IList, which one has better performance and when to use List over IList and vice versa?

Thank you for your help.

Regards
Enos
Posted

 
Share this answer
 
Comments
Nkhanedzeni 26-Jul-13 4:30am    
Thanks, for sure this will help me
berrymaria 26-Jul-13 4:34am    
Please accept my answer :)
Nkhanedzeni 26-Jul-13 4:37am    
owk.
berrymaria 26-Jul-13 4:53am    
thank you :)
List is an class,
IList is an interface

You cannot explicitly create an IList, but you can create various classes that inherit from interfaces.
I suggest you Google Interfaces and Classes so you can understand the difference better.
 
Share this answer
 
Comments
Nkhanedzeni 26-Jul-13 4:16am    
Thanks let me google as i still don't understand you

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