BindingSource source = new BindingSource();
source.Add(new List<string>() { "1", "2", "3" });
//List<string> theList = source.List;//compile fail. Can't convert from IList to List<T> implicity
List<string> theList = source.List as List<string>;//fail, null
我在网上看到人们创建了一种执行显式转换的方法。对于这项任务,这似乎完全是矫枉过正。有没有更好的方法来取回我的清单?