How to get MethodInfo
for Array.IndexOf<string>(string[], string)
?
I try using this code, but doesn't work.
typeof(Array).GetMethod("IndexOf",
BindingFlags.Public | BindingFlags.Static, null,
new Type[] { typeof(string[]), typeof(string) }, null);