This project has moved. For the latest updates, please go here.

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

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