I have a string
string str=\"hello\";
This is my array
string[] myarr = new string[] {\"good\",\"Hello\", \"this\" , \"new\
Array.IndexOf calls the default "Equals" method which is case-sensitive. Try this:
Array.FindIndex(myarr, t => t.Equals(str, StringComparison.InvariantCultureIgnoreCase))