查询数组索引

来源:互联网 发布:淘宝和天猫的区别 编辑:程序博客网 时间:2024/06/05 02:36
int[] array = new int[] { 5, 7, 3, 1, 9 };   Console.WriteLine( Array.IndexOf<int>(array,1));