LINQ: Exemple d’utilisation des agrégats sur un tableau

Author:

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

using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;

namespace LINQ
{
    public class ExempleAgregat
    {
        public static void Main()
        {
            int[] nombres = { 100, 200, 300, 400, 500, 600, 700, 800, 900 };
            var requete = nombres.Aggregate((a, b) => a * b);
        }
    }
}

Leave a Reply

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