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
use MOONLIGHT symbol
[mcs.git]
/
tests
/
gtest-183.cs
blob
5c533228ed18546b112c606d9aa06f10a285e809
1
using
System
;
2
using
System
.
Collections
.
Generic
;
3
4
namespace
test
5
{
6
class
Test
<
T
>
7
{
8
public
IEnumerable
<
T
>
Lookup
(
T item
)
9
{
10
byte
i
=
3
;
11
byte
j
=
3
;
12
yield return
item
;
13
}
14
}
15
16
class
Program
17
{
18
public static void
Main
(
string
[]
args
)
19
{
20
Test
<
string
>
test
=
new
Test
<
string
>();
21
foreach
(
string
s
in
test
.
Lookup
(
"hi"
) )
22
{
23
Console
.
WriteLine
(
s
);
24
}
25
}
26
}
27
}