LINQ: Exemple des Agrégats avec condition

Author:

LINQ, All, Any, Concat, Contains, Agrégat, Union, Select, Order, From, Where
{filelink=15062}

using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace LINQ
{
public class ExempleAgregat2
{
   public static void Main()
   {
       int[] tabNbr = { 50, 20, 15, 70, 24, 30, 60, 40, 10 };
       var requete = tabNbr.Aggregate(30, (a,b) => ( (a < b) ? (a * b) : a));
    }
}

}

Leave a Reply

Your email address will not be published. Required fields are marked *