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.

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

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

How to Share webservice object to all user

How to fix error Msg 1801, Level 16, State 3, Line 1