我有一个清单
List<Control> inputBoxes = new List<Control>();
我在其中添加了组合框和文本框。
我可以设置 text 属性, inputBoxes[0].GetType().GetProperty("Text").SetValue(inputBoxes[0], "ABC", null);
但如何将项目添加到组合框并选择它们?
我可以inputBoxes[0].GetType().GetMethod()
以某种方式使用吗?