projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* Makefile: added
[mono.git]
/
mcs
/
tests
/
2test-4.cs
1
using System;
2
using System.Collections;
3
4
class X {
5
static IEnumerable GetRange (int start, int end)
6
{
7
for (int i = start; i < end; i++)
8
yield i;
9
}
10
11
static void Main ()
12
{
13
Console.WriteLine ("GetRange 10..20");
14
15
foreach (int i in GetRange (10, 20)){
16
Console.WriteLine ("i=" + i);
17
}
18
}
19
}