repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[2019-12] [threads] Add back mono_threads_attach_tools_thread as a public API (#18074)
[mono-project.git]
/
mono
/
tests
/
reflection5.cs
blob
1d63ec208e5e935ae8850575f6b35d4ba02b2674
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
}