I\'ve gotta be missing something simple here.
Take the following code:
public IEnumerable getInt(){ for(int i = 0; i < 10; i++){ y
How about this?
IEnumerator iter = obj.getInt(); using(iter) { while(iter.MoveNext()) { DoSomethingWith(iter.Current) } }