2 using System
.Reflection
;
8 const BindingFlags flags
= BindingFlags
.FlattenHierarchy
| BindingFlags
.Public
| BindingFlags
.NonPublic
| BindingFlags
.Instance
| BindingFlags
.Static
;
9 public static int Main()
11 foreach (MethodInfo m
in typeof(Type
[]).GetMethods(flags
)) {
12 if (m
.Name
== "System.Collections.Generic.IList`1.IndexOf") {
13 Console
.WriteLine(m
.GetParameters().Length
);