您的位置:首页 > 其它

通过IndexOf方法来查找对象在ArrayList中的位置

2015-04-11 08:29 274 查看
通过IndexOf方法来查找对象在ArrayList中的位置
ArrayList alcollect = new ArrayList();
// Add individual items to the collection
string str = "learn csharp";
alcollect.Add(str);
//find position of object codego.net
Console.WriteLine(alcollect.IndexOf(str));
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  learn position individual
相关文章推荐