Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / reflection5.cs
1 using System.Reflection;
2 using System;
3
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;
15         }
16 }