I have an MVC3 C#.Net web app. I have the below string array.
public static string[] HeaderNamesWbs = new[] {
If you want to search List with a function rather than specifying an item value, you can use List.FindIndex(Predicate match).
See https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.list-1.findindex?view=netframework-4.8