ObservableCollection<T> Constructor (IEnumerable<T>)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a new instance of the ObservableCollection<T> class and populates it with items copied from the specified collection.
Assembly: System (in System.dll)
Parameters
- collection
- Type: System.Collections.Generic.IEnumerable<T>
The collection from which the items are copied.
| Exception | Condition |
|---|---|
| ArgumentNullException | collection is null. |
Show: