一、IList

      现在我们直接创建一个List集合,然后绑定

1 IList<string> list = new List<string>();
2 list.Add("111111");
3 list.Add("222222");
4 list.Add("333333");
5 list.Add("444444");
6 comboBox1.DataSource = list;
View Code

相关文章: