This is quick tips. If you would like to generate sequence in C#, you can do like below:
// generate 1, 2, 3,...., 24 foreach (var i in Enumerable.Range(1, 25)){ // do somthing nice :D }In my opinion, C# (.Net implementation) has nicer built-in libraries and syntax than Java...
コメント