Click here to Skip to main content
12,953,230 members (81,490 online)

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
NewsIs it better to call ToList() or ToArray() in LINQ queries? Pin
Clifford Nelson21-Nov-12 5:59
memberClifford Nelson21-Nov-12 5:59 
GeneralRe: Is it better to call ToList() or ToArray() in LINQ queries? Pin
AspDotNetDev21-Nov-12 7:09
protectorAspDotNetDev21-Nov-12 7:09 
AnswerRe: Is it better to call ToList() or ToArray() in LINQ queries? Pin
Clifford Nelson21-Nov-12 12:13
memberClifford Nelson21-Nov-12 12:13 
GeneralRe: Is it better to call ToList() or ToArray() in LINQ queries? Pin
AspDotNetDev21-Nov-12 12:30
protectorAspDotNetDev21-Nov-12 12:30 
GeneralRe: Is it better to call ToList() or ToArray() in LINQ queries? Pin
Andrew Rissing21-Nov-12 7:57
memberAndrew Rissing21-Nov-12 7:57 
GeneralRe: Is it better to call ToList() or ToArray() in LINQ queries? Pin
Clifford Nelson21-Nov-12 11:59
memberClifford Nelson21-Nov-12 11:59 
GeneralRe: Is it better to call ToList() or ToArray() in LINQ queries? Pin
Marc Clifton21-Nov-12 10:28
protectorMarc Clifton21-Nov-12 10:28 
AnswerRe: Is it better to call ToList() or ToArray() in LINQ queries? Pin
Clifford Nelson21-Nov-12 12:09
memberClifford Nelson21-Nov-12 12:09 
I try to keep to the LINQ Enumerable, but definitely do not like it. The advantage and disadvantage of the LINQ Enumerable is that the LINQ statement is only executed when it is needed; That can cut down memory, and processing. Of course working with them in the debugger can be painful since you have to physically cause the LINQ to be executed with the Expand results. Also, after a while can no longer even get the LINQ to execute. I therefore will sometime convert to a List when programming so that debugging is easier, and when I am finished, convert back. I have also found that I need to convert to a List when working with EntityFramework because errors cause once out of the Object Context. I also have found that working with WPF binding, it can be advantageous to go with a List.
GeneralRe: Is it better to call ToList() or ToArray() in LINQ queries? Pin
Mathlab21-Nov-12 10:52
memberMathlab21-Nov-12 10:52 
AnswerRe: Is it better to call ToList() or ToArray() in LINQ queries? Pin
Clifford Nelson21-Nov-12 12:11
memberClifford Nelson21-Nov-12 12:11 
GeneralRe: Is it better to call ToList() or ToArray() in LINQ queries? Pin
ibrahim_ragab21-May-13 11:51
memberibrahim_ragab21-May-13 11:51 
AnswerRe: Is it better to call ToList() or ToArray() in LINQ queries? Pin
Clifford Nelson23-May-13 5:24
memberClifford Nelson23-May-13 5:24 
NewsWaiting for a Process to Exit Pin
Terrence Dorsey20-Nov-12 11:37
staffTerrence Dorsey20-Nov-12 11:37 
GeneralRe: Waiting for a Process to Exit Pin
PIEBALDconsult20-Nov-12 14:05
memberPIEBALDconsult20-Nov-12 14:05 
GeneralRe: Waiting for a Process to Exit Pin
AspDotNetDev20-Nov-12 14:20
protectorAspDotNetDev20-Nov-12 14:20 
GeneralRe: Waiting for a Process to Exit Pin
PIEBALDconsult20-Nov-12 14:24
memberPIEBALDconsult20-Nov-12 14:24 
GeneralRe: Waiting for a Process to Exit Pin
Ravi Bhavnani21-Nov-12 6:36
memberRavi Bhavnani21-Nov-12 6:36 
NewsILSpy versus .NET Reflector Pin
Terrence Dorsey20-Nov-12 11:36
staffTerrence Dorsey20-Nov-12 11:36 
GeneralRe: ILSpy versus .NET Reflector Pin
Marc Clifton20-Nov-12 12:12
protectorMarc Clifton20-Nov-12 12:12 
GeneralRe: ILSpy versus .NET Reflector Pin
VallarasuS20-Nov-12 18:12
memberVallarasuS20-Nov-12 18:12 
GeneralRe: ILSpy versus .NET Reflector Pin
AspDotNetDev21-Nov-12 7:11
protectorAspDotNetDev21-Nov-12 7:11 
NewsThe Early History Of Smalltalk Pin
Terrence Dorsey20-Nov-12 11:36
staffTerrence Dorsey20-Nov-12 11:36 
NewsC# to Objective-C - Part 1: Strings Pin
Terrence Dorsey20-Nov-12 11:35
staffTerrence Dorsey20-Nov-12 11:35 
GeneralRe: C# to Objective-C - Part 1: Strings Pin
Clifford Nelson20-Nov-12 12:26
memberClifford Nelson20-Nov-12 12:26 
GeneralRe: C# to Objective-C - Part 1: Strings Pin
Dan Neely21-Nov-12 7:28
memberDan Neely21-Nov-12 7:28 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170525.1 | Last Updated 27 May 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid