ObservableCollection<T> Constructor (IEnumerable<T>)
Initializes a new instance of the ObservableCollection<T> class and populates it with items copied from the specified collection.
Namespace: System.Collections.ObjectModel
Assembly: System.Windows (in System.Windows.dll)
Parameters
- collection
- Type: System.Collections.Generic.IEnumerable<T>
The collection from which the items are copied.
| Exception | Condition |
|---|---|
| ArgumentNullException |
collection is null. |
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.