Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Program.cs « ConsoleApplication3 « solution-build-order « test-projects « tests « main - github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bc23111cafe1edf099622331d3ac234952327e5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication3
{
	class Program
	{
		static void Main(string[] args)
		{
			var e = GetNumbers();
		}

		static IEnumerable<int> GetNumbers()
		{
			int n = 0;
			while (n<1000)
				yield return n++;
		}
	}
}