【发布时间】:2012-02-03 16:40:10
【问题描述】:
如何为Array.IndexOf<string>(string[], string) 获取MethodInfo?
我尝试使用此代码,但不起作用。
typeof(Array).GetMethod("IndexOf",
BindingFlags.Public | BindingFlags.Static, null,
new Type[] { typeof(string[]), typeof(string) }, null);
【问题讨论】:
-
看看here。
-
感谢您提供更多信息,让我更了解我的问题。
标签: c# reflection