Add assert when dllmap is disabled and fix support build in netcore mode
[mono-project.git] / mono / tests / reflection5.cs
blob1d63ec208e5e935ae8850575f6b35d4ba02b2674
1 using System.Reflection;
2 using System;
4 public class T {
5 public static int Main() {
6 int[] arr = {1};
7 Type t = arr.GetType ();
8 Console.WriteLine ("type is: "+t.ToString());
9 Console.WriteLine ("type is array: "+t.IsArray);
10 if (t.ToString() != "System.Int32[]")
11 return 1;
12 if (!t.IsArray)
13 return 2;
14 return 0;