Skip to content
Discussion options

You must be logged in to vote

After testing I think @Flutterish approach @YairHalberstadt are the same

 public static List<Score> scores98_361 => Enumerable.Range(1, 250).Select(i => new Score(i)).ToList();
 public static List<Score> scores98_362 => (from i in Enumerable.Range(1, 250) select new Score(i)).ToList();

I think having something like this in C# will be neat 😃

 public static List<Score> scores98_361 =  for(var i =1;i<251;i++) {  new Score(i)    };
// or

 public static List<Score> scores98_361 =  for(var i =1;i<251;i++) => new Score(i);

//And for each 

 public static List<int> Numbers =  for(var i =1;i<251;i++) => i;

 public static List<Score> scores98_361 = foreach (var item in Numbers) => new Score(item );

Replies: 10 comments 18 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Sharaf-Mansour
Comment options

Comment options

You must be logged in to vote
4 replies
@huoyaoyuan
Comment options

@Sharaf-Mansour
Comment options

@huoyaoyuan
Comment options

@Sharaf-Mansour
Comment options

Comment options

You must be logged in to vote
3 replies
@Sharaf-Mansour
Comment options

@YairHalberstadt
Comment options

@Sharaf-Mansour
Comment options

Comment options

You must be logged in to vote
1 reply
@Sharaf-Mansour
Comment options

Comment options

You must be logged in to vote
1 reply
@Sharaf-Mansour
Comment options

Comment options

You must be logged in to vote
1 reply
@Sharaf-Mansour
Comment options

Comment options

You must be logged in to vote
1 reply
@Sharaf-Mansour
Comment options

Comment options

You must be logged in to vote
5 replies
@HaloFour
Comment options

@YairHalberstadt
Comment options

@Sharaf-Mansour
Comment options

@YairHalberstadt
Comment options

@Sharaf-Mansour
Comment options

Answer selected by Sharaf-Mansour
Comment options

You must be logged in to vote
1 reply
@Sharaf-Mansour
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants