CollectionBase or List<> ?
what's difference between
1. class firmcollection : list<firm>
{
}
and
2. class firmcollection : collectionbase
{
}
i can't understand advantage of each method.
 1. class firmcollection : list<firm>
{
}
and
2. class firmcollection : collectionbase
{
}
i can't understand advantage of each method.
well both provide typed collections.  1 abstract (collectionbase) means need implement of classes functionality , other not, list<> comes ready use.  unless need customize of collection functionality go list<> it's ready use.  
                                                                          .NET Framework                                                     >                                                                 Common Language Runtime Internals and Architecture                                                                           
 
 
Comments
Post a Comment