This project has moved and is read-only. For the latest updates, please go here.

How to convert ObservableCollection<object> returned by CheckComboBox.SelectedItems to List?

Mar 25, 2014 at 7:13 AM
How to convert ObservableCollection<objext> returned by CheckComboBox.SelectedItems to List<ClassName>?
Developer
Mar 25, 2014 at 1:24 PM
Hi,
using System.Linq, you can do :
List<Data> test = new List<Data>( _checkComboBox.SelectedItems.Cast<Data>() );