[2020-02] Avoid following invalid pointers in mono_w32process_get_modules on Darwin...
[mono-project.git] / mono / tests / reflection4.cs
blob6683c3680f44331fc9c2ab5923e0e6e25857db2d
1 using System;
2 using System.Reflection;
4 public class T {
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");
14 return 1;
16 return 0;