projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2004-06-05 Atsushi Enomoto <atsushi@ximian.com>
[mono.git]
/
mono
/
tests
/
arraylist.cs
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
}