Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

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

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);
    }
}
}

No comments yet.

Leave a Comment