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