String[] arr = new[] { "1", "123" };
            IEnumerable<int> arrSelectIndex = arr.Select<String, int>((s, i) => Convert.ToInt32(s) + i);
            foreach (int i in arrSelectIndex)
            {
                Console.WriteLine(i);
            }
            IEnumerable<int> arrSelect = arr.Select<String, int>(s => Convert.ToInt32(s)).ToList();
            foreach (var s in arrSelect)
            {
                Console.WriteLine(s);
            }

相关文章:

  • 2021-12-01
  • 2021-05-17
  • 2021-07-29
  • 2022-03-04
  • 2021-12-18
  • 2021-07-12
  • 2021-07-01
猜你喜欢
  • 2022-12-23
  • 2021-10-09
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案