我有以下列表:
private List<Car> _cars = new List<Car>();
我知道我可以使用_cars.Count()检查列表的大小,但我是否也可以找到列表中汽车项目的序列号?
发布于 2011-06-20 20:38:58
您可以使用List.IndexOf()。请查看List Class reference,了解有关列表的更多信息。
List.IndexOf()
https://stackoverflow.com/questions/6411240
相似问题