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

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'