code_junkie

Is there any difference between iterator methods returning IEnumerable<T> and IEnumerator<T>?

Nov 13th, 2011
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. public static IEnumerable<int> It1() {
  2. ...
  3. }
  4.  
  5. public static IEnumerator<int> It2() {
  6. ...
  7. }
Add Comment
Please, Sign In to add comment