【发布时间】:2017-10-24 12:27:20
【问题描述】:
我的主数组如下所示:
String[] main = new String[products.Count];
for (int i = 0; i < main.Length; i++)
{
main[i] = products[i].id +
products[i].productowner +
products[i].description +
products[i].countryofmanufacture;
}
还有一个只有少数 products[i].productowner 值的字符串列表:
List<string> specificproductowners = new List<string>();
我想知道通过单击 John 是否可以从主数组中获取所有其他信息(id、描述、ountryofmanufacture)
A Windows Form listBox (specificproductowners)
-----------------------------
| John |
| Alex |
| Tom |
| Jan |
-----------------------------
【问题讨论】: