I have one array:
string[] cars = {"Volvo", "BMW", "Volvo", "Mazda","BMW","BMW"};
I m looking for the index of BMW, and I using below code to get:
Label1.Text = Array.FindIndex(filterlistinput, x => x.Contains("BMW")).ToString();
Unfortunately it return the result for the first BMW index only. Current output:
1
My expected output will be
{1,4,5}