C# not existing System.Collections.Generic.IEnumerable<int> Range (int start, int count);

I think I am doing something wrong. When I try to make a range (or find the internet in how to do it) it seems not possible because IEnumerable does not exist. Do you see my profile picture? It makes me doing that face right now…

question2.gh (7.2 KB)

You need to add using System.Linq;

Enumerable.gh (4.6 KB)

1 Like
List<int> range = IEnumerable(1, 20);

Are it var-s, double-s, int-s? :slight_smile:


I did but it did not work :frowning:

List<int> range = Enumerable.Range(1, 20).ToList();
1 Like

Thank you :slight_smile: