private void AddFields(object obj)
        {
            IEnumerable list = obj as IEnumerable;
            foreach (var item in list)
            {
                ReportColumn r = new ReportColumn();
                r.BindingField = item as QueryFieldBase;
                SelectedColumnCollection.Add(r);
            }
        }

所有的集合类的都会实现IEnumerable接口

 

http://blog.csdn.net/swarb/article/details/9000405

相关文章:

  • 2022-12-23
  • 2021-12-23
  • 2021-10-08
  • 2021-10-22
  • 2021-06-15
  • 2022-12-23
  • 2022-12-23
  • 2021-10-06
猜你喜欢
  • 2020-04-02
  • 2022-12-23
  • 2021-08-10
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案