Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# Querying With LINQ Query Operators Conversion Operators

conversion operators

Challenge Task 1 of 2

Create a new variable named numbers and use the Enumerable.Range method to generate an enumerable of 10 integers starting from 0.

CodeChallenge.cs

2 Answers

Given your lack of question, my best answer is this "Enumerable.Range Method (Int32, Int32)" from the official MSDN documentation. You should be able to figure out what you need to do to pass the challenge from there.

alexmig
alexmig
27,192 Points

var numbers = Enumerable.Range(0, 10);