As per the MSDN
var myObservableCollection = new ObservableCollection<YourType>(myIEnumerable);
This will make a shallow copy of the current IEnumerable and turn it in to a ObservableCollection.
More Related Contents:
- Problem 3-way merge sorting strings in C#
- How to get the last day of each month?
- How to write this nested foreach loop query in LINQ?
- How can I add user-supplied input to an SQL statement?
- How to get last inserted id?
- How to post messages to an STA thread running a message pump?
- DPI Awareness – Unaware in one Release, System Aware in the Other [duplicate]
- C# switch statement limitations – why?
- How can I use NuGet packages in my Azure Functions?
- How can I run another application within a panel of my C# program?
- How to read a PEM RSA private key from .NET
- How to write an async method with out parameter?
- SQLite Insert very slow?
- Install a .NET windows service without InstallUtil.exe
- An attempt was made to access a socket in a way forbidden by its access permissions
- Method Signature in C#
- Get thumbnail image of video file in C# [closed]
- How to reference assemblies using Visual Studio Code?
- Unique computer ID
- Why cannot I cast my COM object to the interface it implements in C#?
- Working with AppDomain.AssemblyResolve event
- How to get current regional settings in C#?
- Add vertical scroll bar to panel
- Compile to a stand-alone executable (.exe) in Visual Studio
- Could not load file or assembly ‘System.ValueTuple’
- C#: Oracle Data Type Equivalence with OracleDbType
- Handle touches not started on the UI
- What’s the difference between a public constructor in an internal class and an internal constructor?
- Where can I find the System.Linq.Dynamic dll?
- Accessing an open Excel Workbook in C#