[2019-12] [threads] Add back mono_threads_attach_tools_thread as a public API (#18074)
[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;