Contains with predicate returned false : Contains : LINQ C# Source Code


Custom Search

C# Source Code » LINQ » Contains »

 

Contains with predicate returned false








    
 

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

public class MainClass {
    public static void Main() {
        string[] presidents = {"A", "H", "a", "H", "over", "Jack"};
        bool contains = presidents.Contains("G");
        Console.WriteLine(contains);
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo LINQ
» Contains