- using System;
- using System.Linq;
- using System.Collections;
- using System.Collections.Generic;
- public class MainClass {
- public static void Main() {
- string[] presidents = {"C", "S", "H", "A", "P", "corner.com"};
- bool any = presidents.Any();
- Console.WriteLine(any);
- }
- }
This piece of code will show you how you can use linq Any operator with an string Array using c#.net.
