repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2008-09-29 Jb Evain <jbevain@novell.com>
[mcs.git]
/
tests
/
gtest-108.cs
blob
a7546e589a6ad57b397a21b7530dc611bd14ba53
1
using
System
;
2
using
System
.
Collections
.
Generic
;
3
4
public class
Test
<
T
>
5
{
6
protected
T item
;
7
8
public
Test
(
T item
)
9
{
10
this
.
item
=
item
;
11
}
12
13
public
IEnumerator
<
T
>
GetEnumerator
()
14
{
15
yield return
item
;
16
}
17
}
18
19
class
X
20
{
21
static void
Main
()
22
{
23
Test
<
int
>
test
=
new
Test
<
int
> (
3
);
24
foreach
(
int
a
in
test
)
25
;
26
}
27
}