I have an MVC3 C#.Net web app. I have the below string array.
public static string[] HeaderNamesWbs = new[] {
Right List has IndexOf(), just declare it as ILIst rather than string[]
List
ILIst
string[]
public static IList HeaderNamesWbs = new List { WBS_NUMBER, BOE_TITLE, SOW_DESCRIPTION, HARRIS_WIN_THEME, COST_BOGEY }; int index = HeaderNamesWbs.IndexOf(WBS_NUMBER);
MSDN: List(Of T).IndexOf Method (T)