projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* HttpChannel.cs, HttpClientChannel.cs, HttpHelper.cs, HttpServer.cs,
[mono.git]
/
mcs
/
tests
/
2test-2.cs
1
using System;
2
using System.Collections;
3
4
class X {
5
static int start, end;
6
static int i;
7
8
static IEnumerator GetRange ()
9
{
10
yield 1;
11
for (i = start; i < end; i++)
12
yield i;
13
yield 100;
14
}
15
16
static void Main ()
17
{
18
start = 10;
19
end = 30;
20
21
IEnumerator e = GetRange ();
22
while (e.MoveNext ()){
23
Console.WriteLine ("Value=" + e.Current);
24
}
25
}
26
}