LINQ: Exemple d’uilisation de ‘Any’ sans prédicat

Author:

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

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

namespace LINQ
{
public class ExempleAny
{
    public static void Main()
	{
        string[] listeSite = { "www.mesexemples.com", "java.mesexemples.com", "php.mesexemples.com", "android.mesexemples.com", "www.yahoo.com", "www.google.fr" };
        bool any = listeSite.Any();
        Console.WriteLine(any);
    }
}
}

Leave a Reply

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