4 ms·
For older .Net collections you can use Cast<T>() to get LINQ goodness. Something like this would work: var values = from x in combobox.Items.Cast<ComboBoxIt
by dbattaglia 14y ago
For older .Net collections you can use Cast<T>() to get LINQ goodness. Something like this would work:
var values = from x in combobox.Items.Cast<ComboBoxItem>() where x.Value > 5 select x.Value;