a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
28 lines
382 B
C#
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);
|
|
}
|
|
}
|
|
}
|
|
}
|