using System; using System.Collections.Generic; namespace test { class Test { public IEnumerable Lookup(T item) { byte i = 3; byte j = 3; yield return item; } } class Program { public static void Main (string[] args) { Test test = new Test(); foreach(string s in test.Lookup("hi") ) { Console.WriteLine(s); } } } }