快速返回乏型List对象或数值

User user= allData.rows.FindIndex(
                                            delegate (User us)
                                            {
                                                    return us.id == 1;
                                            }
                                        )

返回查找值的索引

List<int> list = new List<int>() { 1, 2, 3 };
int index = list.FindIndex(v1 => v1 == 2);
list[index] = 4;

 

相关文章:

  • 2021-11-21
  • 2021-09-16
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
  • 2021-12-31
  • 2021-04-22
猜你喜欢
  • 2021-11-06
  • 2021-07-10
  • 2021-12-19
  • 2021-10-07
  • 2021-05-14
  • 2021-07-10
相关资源
相似解决方案