repo.or.cz
/
mono.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2010-06-17 Geoff Norton <gnorton@novell.com>
[mono.git]
/
mono
/
tests
/
array-cast.cs
blob
a7c6e687cd816587f1ccf492a341697398024150
1
using
System
;
2
3
namespace
Test
{
4
public class
Test
{
5
public static int
Main
() {
6
Attribute
[]
attr_array
=
new
Attribute
[
1
];
7
object
obj
= (
object
)
attr_array
;
8
object
[]
obj_array
= (
object
[])
obj
;
9
10
obj_array
=
obj
as object
[];
11
12
if
(
obj_array
==
null
)
13
return
1
;
14
15
return
0
;
16
}
17
}
18
}