47
1
using System;
2
using System.Collections;
3
using System.Collections.Generic;
4
5
public class Program
6
{
7
static List<int> numbers = new List<int>();
8
9
public static void Main()
10
{
11
// Make a list of 100 random numbers between 0 and 1024
12
var rand = new System.Random();
13
for(var i = 0; i < 100; i++)
14
{
15
numbers.Add(rand.Next(0, 1024));
16
}
17
18
var threshold = 512;
19
var numberEnumerator = GreaterThan(threshold);
20
Console.WriteLine("Numbers greater than " + threshold);
21
22
while(numberEnumerator.MoveNext()) // continues execution of the IEnumerator till it hits the next yield statement and populates it's Current value.
23
{
24
Cached Result
Compilation error (line 5, col 17): There is no argument given that corresponds to the required parameter 'apoQueue' of 'ApoQueueVM.ApoQueueVM(string, string)'