Click here to Skip to main content
15,908,775 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: C# 6 Features Pin
F-ES Sitecore6-Oct-15 6:53
professionalF-ES Sitecore6-Oct-15 6:53 
GeneralRe: C# 6 Features Pin
PIEBALDconsult6-Oct-15 8:24
mvePIEBALDconsult6-Oct-15 8:24 
GeneralRe: C# 6 Features Pin
harold aptroot6-Oct-15 8:28
harold aptroot6-Oct-15 8:28 
GeneralRe: C# 6 Features Pin
PIEBALDconsult6-Oct-15 11:43
mvePIEBALDconsult6-Oct-15 11:43 
GeneralRe: C# 6 Features Pin
harold aptroot6-Oct-15 21:18
harold aptroot6-Oct-15 21:18 
GeneralRe: C# 6 Features Pin
PIEBALDconsult7-Oct-15 4:38
mvePIEBALDconsult7-Oct-15 4:38 
GeneralRe: C# 6 Features Pin
harold aptroot7-Oct-15 4:47
harold aptroot7-Oct-15 4:47 
GeneralRe: C# 6 Features Pin
PIEBALDconsult7-Oct-15 4:58
mvePIEBALDconsult7-Oct-15 4:58 
foreach is more general in that it can work on any IEnumerable, whereas for is more general in that it doesn't require an IEnumerable. ::shrug::

I find that for, particularly a reverse for (which reduces calls to Length or Count or whatever), can perform much better than foreach. Though the actual time saved may not be significant, still you don't know what else is going on in the system.

On why to use DataViews[^]
GeneralRe: C# 6 Features Pin
F-ES Sitecore6-Oct-15 23:22
professionalF-ES Sitecore6-Oct-15 23:22 
GeneralRe: C# 6 Features Pin
Dennis_E6-Oct-15 7:52
professionalDennis_E6-Oct-15 7:52 
GeneralRe: C# 6 Features Pin
FIorian Schneidereit6-Oct-15 11:13
FIorian Schneidereit6-Oct-15 11:13 
GeneralVoting for content Pin
R. Giskard Reventlov6-Oct-15 5:34
R. Giskard Reventlov6-Oct-15 5:34 
GeneralRe: Voting for content Pin
Maximilien6-Oct-15 5:46
Maximilien6-Oct-15 5:46 
GeneralRe: Voting for content Pin
R. Giskard Reventlov6-Oct-15 6:22
R. Giskard Reventlov6-Oct-15 6:22 
GeneralRe: Voting for content Pin
Mycroft Holmes6-Oct-15 14:59
professionalMycroft Holmes6-Oct-15 14:59 
GeneralRe: Voting for content Pin
Kornfeld Eliyahu Peter6-Oct-15 7:03
professionalKornfeld Eliyahu Peter6-Oct-15 7:03 
GeneralRe: Voting for content Pin
R. Giskard Reventlov6-Oct-15 7:19
R. Giskard Reventlov6-Oct-15 7:19 
GeneralRe: Voting for content Pin
Slacker0076-Oct-15 7:23
professionalSlacker0076-Oct-15 7:23 
GeneralRe: Voting for content Pin
Kornfeld Eliyahu Peter6-Oct-15 7:36
professionalKornfeld Eliyahu Peter6-Oct-15 7:36 
GeneralRe: Voting for content Pin
Slacker0076-Oct-15 7:38
professionalSlacker0076-Oct-15 7:38 
GeneralThought of the day PinPopular
OriginalGriff6-Oct-15 5:02
mveOriginalGriff6-Oct-15 5:02 
GeneralRe: Thought of the day Pin
Gittum6-Oct-15 5:06
Gittum6-Oct-15 5:06 
GeneralRe: Thought of the day Pin
jeron16-Oct-15 5:07
jeron16-Oct-15 5:07 
GeneralRe: Thought of the day Pin
Ravi Bhavnani6-Oct-15 5:08
professionalRavi Bhavnani6-Oct-15 5:08 
GeneralRe: Thought of the day Pin
jeron16-Oct-15 5:20
jeron16-Oct-15 5:20 

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.