2 using System
.Reflection
;
4 namespace FLMID
.Bugs
.ParametersOne
10 System
.Console
.WriteLine("OK");
16 public static void Main(string [] args
)
18 Class
<string> instance
= new Class
<string>();
20 MethodInfo _method
= null;
22 foreach(MethodInfo method
in
23 typeof(Class
<string>).GetMethods(BindingFlags
.Instance
| BindingFlags
.Public
))
25 if(method
.Name
.Equals("Add") && method
.GetParameters().Length
==1)
31 _method
.Invoke(instance
, new object[]{"1"}
);