projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2003-07-21 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
[mono.git]
/
mcs
/
tests
/
2test-1.cs
1
using System;
2
using System.Collections;
3
4
class X {
5
static IEnumerator GetIt ()
6
{
7
Console.WriteLine ("test");
8
#if __V2__
9
yield 1;
10
yield 2;
11
yield 3;
12
#else
13
return null;
14
#endif
15
}
16
17
static void Main ()
18
{
19
IEnumerator e = GetIt ();
20
while (e.MoveNext ()){
21
Console.WriteLine ("Value=" + e.Current);
22
}
23
24
}
25
}