0
点赞
收藏
分享

微信扫一扫

扩展BindingList

三维控件研究 2022-01-08 阅读 157

 让BindingList与List随意结合

    public static class BindingListExtension
    {
        public static void AddRange<T>(this System.ComponentModel.BindingList<T> d, List<T> data)
        {
            foreach (var item in data)
            {
                d.Add(item);
            }
        }
    }

举报

相关推荐

0 条评论