I have a class (SomeClass
) which contains a property Name
of string
type. And I need to store an array of that class and find its items by their names. For this purpose there are two types of collections: KeyedCollection
and Dictionary
. My question is: What difference between them and in such case It is better to use KeyedCollection
and Dictionary
? Thanks for any help in explanation.