c# - 将 BindingList<MyObject> 转换为 List<MyObject> c#

标签 c# bindinglist

如何将 BindingList 转换为 List?

最佳答案

试试这个

List<int> list = yourBindingList.ToList();

int 是你的类型 =)

关于c# - 将 BindingList<MyObject> 转换为 List<MyObject> c#,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10204554/

相关文章:

c# - 如何列出在 Windows 中运行的所有进程?

c# - 在 C# 中使用 DataGridView 和 BindingList 时的线程安全建议

c# - 在 BindingList<T> 中找不到 Select() 方法,包括 System.Linq

c# - 创建可以绑定(bind)到 DataGrid 的自定义集合

c# - INotifyPropertyChanged 和 BindingList ListChanged 事件

c# - FixDocument 作为报告引擎?

c# - 将 Regex.Matches 连接到一个字符串

c# - 为什么像 BindingList 或 ObservableCollection 这样的类不是线程安全的?

c# - 检查库存是否有足够的库存

c# - String.Contains 和 String.LastIndexOf C# 返回不同的结果?