Contains with predicate returned false

image_pdfimage_print
   
 

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

    


This entry was posted in LINQ. Bookmark the permalink.