Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

28 lines
382 B
C#

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);
}
}
}
}