A method that returns an IEnumerable can get its output from another method with the same return type?

Unfortunately not In F# you could do something like yield! InnerMethod(i) but there's no equivalent in C I mean, in this particular case you could replace the method with: IEnumerable outerMethod(int parameter) { return Enumerable. Range(1, parameter) .

SelectMany(x => innerMethod(x)); } but I expect you wanted a more general purpose way of doing it. (If that helps though, great! ).

Unfortunately not. In F# you could do something like yield! InnerMethod(i) but there's no equivalent in C#.

I mean, in this particular case you could replace the method with: IEnumerable outerMethod(int parameter) { return Enumerable. Range(1, parameter) . SelectMany(x => innerMethod(x)); } but I expect you wanted a more general purpose way of doing it.(If that helps though, great!).

Jul 22 '09 at 14:15 Yup, although pretty quickly... – Jon Skeet Jul 22 '09 at 14:16 Is that supposed to be 1. Parameter, or 1, parameter Jon? – Matthew Scharley Jul 22 '09 at 14:19 Oops, "1, parameter" as per question.

Will edit. – Jon Skeet Jul 22 '09 at 14:20 Hmm... mister Skeet is starting to make mistakes... this cannot be a good sign. – Peter Lillevold Jul 22 '09 at 14:24.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions