Example:
using System;
using System.Linq;
using System.Collections.Generic;
class LinqAnyExample
{
static void Main(string[] args)
{
string[] str = { “Human”, “Beings”, “are”, “wonderful” };
var resutls = str.Any(s => s.Contains(“ing”));
Console.WriteLine(“Does “ing” exist in the string array? ” + resutls);
Console.ReadLine();
}
}
Output:
Does “ing” exist in the string array? True