If I have an array and I'm using LINQ to check the array elements contain a string using .All() is there a way to do this being case insensitive?
My code is:
string s1 = "hello my name is blah";
string[] split2 = fund.Split(' ');
if (split2.All((s1.Contains)))
{
//Do something
}
If I was doing a simple .Contains(string) I could use the solution from this question. I think the answer will be roughly the same but I'm unsure how to implement the original solution when using delegates.