Click here to Skip to main content
15,897,891 members
Home / Discussions / C#
   

C#

 
GeneralRe: better way to Linqify this ? Pin
BillWoodruff9-Jan-16 13:52
professionalBillWoodruff9-Jan-16 13:52 
That's an interesting comment: the word "consume" usually means "use-up;" but, in this case, the code works, and works because a source IEnumerable can be "used" any number of times.

Of real interest is whether multiple evaluations of the IEnumerable source are very expensive ... in terms of memory, time.

Perhaps it is the case that transforming the IEnumerable to a List<T;> is a good thing to do, if it needs to be evaluated more than once.

thanks, Bill
«Tell me and I forget. Teach me and I remember. Involve me and I learn.» Benjamin Franklin

GeneralRe: better way to Linqify this ? Pin
PIEBALDconsult9-Jan-16 16:05
mvePIEBALDconsult9-Jan-16 16:05 
GeneralRe: better way to Linqify this ? Pin
BillWoodruff11-Jan-16 8:10
professionalBillWoodruff11-Jan-16 8:10 
GeneralRe: better way to Linqify this ? Pin
PIEBALDconsult11-Jan-16 14:33
mvePIEBALDconsult11-Jan-16 14:33 
GeneralRe: better way to Linqify this ? Pin
Richard Deeming12-Jan-16 1:31
mveRichard Deeming12-Jan-16 1:31 
GeneralRe: better way to Linqify this ? Pin
Jörgen Andersson9-Jan-16 21:32
professionalJörgen Andersson9-Jan-16 21:32 
GeneralRe: better way to Linqify this ? Pin
Richard Deeming11-Jan-16 3:31
mveRichard Deeming11-Jan-16 3:31 
GeneralRe: better way to Linqify this ? Pin
Jörgen Andersson11-Jan-16 6:31
professionalJörgen Andersson11-Jan-16 6:31 
GeneralRe: better way to Linqify this ? Pin
Jörgen Andersson10-Jan-16 11:37
professionalJörgen Andersson10-Jan-16 11:37 
GeneralRe: better way to Linqify this ? Pin
PIEBALDconsult10-Jan-16 14:09
mvePIEBALDconsult10-Jan-16 14:09 
GeneralRe: better way to Linqify this ? Pin
BillWoodruff11-Jan-16 8:01
professionalBillWoodruff11-Jan-16 8:01 
GeneralRe: better way to Linqify this ? Pin
PIEBALDconsult11-Jan-16 14:32
mvePIEBALDconsult11-Jan-16 14:32 
GeneralRe: better way to Linqify this ? Pin
BillWoodruff11-Jan-16 7:52
professionalBillWoodruff11-Jan-16 7:52 
GeneralRe: better way to Linqify this ? Pin
PIEBALDconsult10-Jan-16 9:56
mvePIEBALDconsult10-Jan-16 9:56 
GeneralRe: better way to Linqify this ? Pin
Jörgen Andersson10-Jan-16 10:55
professionalJörgen Andersson10-Jan-16 10:55 
GeneralRe: better way to Linqify this ? Pin
PIEBALDconsult9-Jan-16 16:05
mvePIEBALDconsult9-Jan-16 16:05 
AnswerRe: better way to Linqify this ? Pin
Luc Pattyn9-Jan-16 6:13
sitebuilderLuc Pattyn9-Jan-16 6:13 
GeneralRe: better way to Linqify this ? Pin
PIEBALDconsult9-Jan-16 16:45
mvePIEBALDconsult9-Jan-16 16:45 
GeneralRe: better way to Linqify this ? Pin
Luc Pattyn9-Jan-16 16:52
sitebuilderLuc Pattyn9-Jan-16 16:52 
GeneralRe: better way to Linqify this ? Pin
Nish Nishant13-Jan-16 10:24
sitebuilderNish Nishant13-Jan-16 10:24 
GeneralRe: better way to Linqify this ? Pin
Luc Pattyn13-Jan-16 12:17
sitebuilderLuc Pattyn13-Jan-16 12:17 
GeneralRe: better way to Linqify this ? Pin
Nish Nishant14-Jan-16 7:25
sitebuilderNish Nishant14-Jan-16 7:25 
AnswerRe: better way to Linqify this ? Pin
Richard Deeming11-Jan-16 3:29
mveRichard Deeming11-Jan-16 3:29 
GeneralRe: better way to Linqify this ? Pin
BillWoodruff11-Jan-16 8:20
professionalBillWoodruff11-Jan-16 8:20 
GeneralRe: better way to Linqify this ? Pin
Richard Deeming11-Jan-16 8:48
mveRichard Deeming11-Jan-16 8:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.