2 using System
.Reflection
;
6 public static int Main() {
7 Type t
= typeof (System
.Console
);
8 Type
[] p
= {typeof(string)}
;
10 MethodInfo m
= t
.GetMethod ("WriteLine", p
);
12 if (typeof(void) != m
.ReturnType
) {
13 Console
.WriteLine ("Type mismatch");