Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ee0bc0d176
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (18 sloc) 0.48 kb
using System;
using System.Reflection;
namespace Tests
{
public class Test
{
const BindingFlags flags = BindingFlags.FlattenHierarchy | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Static;
public static int Main()
{
foreach (MethodInfo m in typeof(Type[]).GetMethods(flags)) {
if (m.Name == "System.Collections.Generic.IList`1.IndexOf") {
Console.WriteLine(m.GetParameters().Length);
}
}
return 0;
}
}
}
Jump to Line
Something went wrong with that request. Please try again.