List
object allows you to create a list, add things to it, remove it, update it, index into it etc etc and that's all very good. List
is used whenever you just want a generic List
where you specify object type in it and that's it.
IList
on the other hand is an Interface
. Basically, if you want to create your own type of List
, say a list class called SimpleList
, then you can use the Interface
to give you basic methods and structure to your new class. IList
is for when you want to create your own, special sub-class that implements List
.
No comments:
Post a Comment