System.Collections Vs System.Collections.ObjectModel

System.Collections.ObjectModel also has specific collection classes. What is the difference between collections in these two namespaces and in which scenario should we use System.Collections.ObjectModel?

+5
source share
3 answers

From MSDN :

The System.Collections.ObjectModel namespace module contains classes that can be used as collections in the reusable library model object. Use these classes when properties or methods return collections.

. , , ReadOnlyCollection KeyedCollection System.Collections.ObjectModel

+6

, System.Collections.ObjectModel ( , ..).

0

System.Collections.ObjectModel . ( , .)

, , ReadOnlyCollection ObservableCollection, .

, KeyedCollection .

0

All Articles