1 static IEnumerable<int> Fibonacci()
2 {
3 int prev = 0;
4 int current = 1;
5 while (true)
6 {
7 yield return current;
8 current = prev + (prev = current);
9 }
10 }
2 {
3 int prev = 0;
4 int current = 1;
5 while (true)
6 {
7 yield return current;
8 current = prev + (prev = current);
9 }
10 }