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
Bump external/ikdasm to master.
[mono-project.git]
/
mono
/
tests
/
arraylist.cs
blob
aaf8197c1ec6147ca623429407f46d8af27906ed
1
using
System
.
Collections
;
2
3
namespace
Test
{
4
public class
Test
{
5
public static int
Main
() {
6
ArrayList a
=
new
ArrayList
(
10
);
7
int
i
=
0
;
8
a
.
Add
(
0
);
9
a
.
Add
(
1
);
10
a
.
Add
(
2
);
11
a
.
Add
(
3
);
12
foreach
(
int
elem
in
a
) {
13
if
(
elem
!=
i
++)
14
return
i
;
15
}
16
return
0
;
17
}
18
}
19
}