[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / test-iter-04.cs
blobdff8d02ba3e2f929fc149719d22215e53bc7986f
1 // Compiler options: -langversion:default
3 using System;
4 using System.Collections;
6 class X {
7 static IEnumerable GetRange (int start, int end)
9 for (int i = start; i < end; i++)
10 yield return i;
13 public static void Main ()
15 Console.WriteLine ("GetRange 10..20");
17 foreach (int i in GetRange (10, 20)){
18 Console.WriteLine ("i=" + i);