有没有办法将
listView.SelectedIndices
转换为List<int>
?我尝试了以下代码。(List<int>)reListViewAllMovies.SelectedIndices.Cast<List<int>>()
但它不起作用(InvalidCastException)。
如果没有解决方案,是否有任何“一行”解决方案,例如使用lambda表达式?