var prepareIds=new List<long>(){,};
foreach(var prepareId in prepareIds)
{
Console.WriteLine(prepareIds.IndexOf(prepareId));
}
执行结果如下
0
0
0
2021-11-12 00:18:48
var prepareIds=new List<long>(){,};
foreach(var prepareId in prepareIds)
{
Console.WriteLine(prepareIds.IndexOf(prepareId));
}
执行结果如下