class SimpleLambda
{
    static void Main()
    {

        // Data source.
        int[] scores = { 907182937582 };

        // The call to Count forces iteration of the source
        int highScoreCount = scores.Where(n => n > 80).Count();

        Console.WriteLine("{0} scores are greater than 80", highScoreCount);

        // Outputs: 4 scores are greater than 80            
    }
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2022-02-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-19
  • 2022-12-23
  • 2021-09-17
  • 2021-10-29
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案