KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'd like to create a C# List of integers, from say 1930 to 2010. Off the top of my head, the only way I can think of to do this is to use a for or while loop to loop through each integer between the numbers and add them to the List individually. I know C# lists have a lot of interesting methods, especially when you're using Linq. Can anyone think of a more efficient way of doing this?
Tags (comma-separated)
Save Edits
Cancel