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

BizTalk Server 2013 Azure VM Log Shipping and HA for hosts

How to send non-standard Content-Type header ?