var re1 = new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 };
            var re2 = new int[] { 1, 3, 5, 7, 9 };

            var re = re1.DefaultIfEmpty()
                .Join(re2, x => x, y => y, (x, y) => y);
            re.ToList().ForEach(x => MessageBox.Show(x.ToString()));//1,3,5,7,9
            return;
 
reference:http://msdn.microsoft.com/library/bb308959.aspx#linqoverview_topic1

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-05
  • 2022-01-31
  • 2022-12-23
  • 2022-12-23
  • 2022-01-30
  • 2021-06-24
猜你喜欢
  • 2021-07-15
  • 2022-12-23
  • 2022-12-23
  • 2021-07-18
  • 2021-06-19
  • 2021-10-21
  • 2021-08-28
相关资源
相似解决方案