Click here to Skip to main content
15,891,136 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.

 
AnswerRe: C# Object Initializer Syntax Pin
ZurdoDev24-Aug-16 1:17
professionalZurdoDev24-Aug-16 1:17 
GeneralRe: C# Object Initializer Syntax Pin
Sander Rossel24-Aug-16 3:18
professionalSander Rossel24-Aug-16 3:18 
GeneralRe: C# Object Initializer Syntax Pin
#realJSOP24-Aug-16 1:22
mve#realJSOP24-Aug-16 1:22 
GeneralRe: C# Object Initializer Syntax Pin
Eddy Vluggen24-Aug-16 1:34
professionalEddy Vluggen24-Aug-16 1:34 
GeneralRe: C# Object Initializer Syntax Pin
#realJSOP24-Aug-16 2:09
mve#realJSOP24-Aug-16 2:09 
GeneralRe: C# Object Initializer Syntax Pin
Richard Deeming24-Aug-16 2:18
mveRichard Deeming24-Aug-16 2:18 
GeneralRe: C# Object Initializer Syntax Pin
#realJSOP24-Aug-16 2:29
mve#realJSOP24-Aug-16 2:29 
GeneralRe: C# Object Initializer Syntax Pin
Fabio Franco25-Aug-16 9:25
professionalFabio Franco25-Aug-16 9:25 
It's not quite the same, in the matter of debugging.

If initializing gets a little more complex, the former syntax do not allow stepping to find which assignment is throwing the exception.

It's not the end of the world, but it slows you down, so I prefer the latter. It doesn't even require more typing as you can type several lines at the same time in the editor.

To alcohol! The cause of, and solution to, all of life's problems - Homer Simpson


Our heads are round so our thoughts can change direction - Francis Picabia

GeneralRe: C# Object Initializer Syntax Pin
CDP180224-Aug-16 1:41
CDP180224-Aug-16 1:41 
GeneralRe: C# Object Initializer Syntax Pin
Jacquers24-Aug-16 1:59
Jacquers24-Aug-16 1:59 
GeneralRe: C# Object Initializer Syntax Pin
CDP180224-Aug-16 2:05
CDP180224-Aug-16 2:05 
GeneralRe: C# Object Initializer Syntax Pin
#realJSOP24-Aug-16 2:13
mve#realJSOP24-Aug-16 2:13 
GeneralRe: C# Object Initializer Syntax Pin
CDP180224-Aug-16 2:24
CDP180224-Aug-16 2:24 
GeneralRe: C# Object Initializer Syntax Pin
Richard Deeming24-Aug-16 2:20
mveRichard Deeming24-Aug-16 2:20 
GeneralRe: C# Object Initializer Syntax Pin
CDP180224-Aug-16 2:27
CDP180224-Aug-16 2:27 
GeneralRe: C# Object Initializer Syntax Pin
TheGreatAndPowerfulOz24-Aug-16 3:30
TheGreatAndPowerfulOz24-Aug-16 3:30 
GeneralRe: C# Object Initializer Syntax Pin
CDP180224-Aug-16 3:38
CDP180224-Aug-16 3:38 
GeneralRe: C# Object Initializer Syntax Pin
TheGreatAndPowerfulOz24-Aug-16 4:11
TheGreatAndPowerfulOz24-Aug-16 4:11 
GeneralRe: C# Object Initializer Syntax Pin
CDP180224-Aug-16 4:16
CDP180224-Aug-16 4:16 
GeneralRe: C# Object Initializer Syntax Pin
Ian Shlasko24-Aug-16 3:20
Ian Shlasko24-Aug-16 3:20 
GeneralRe: C# Object Initializer Syntax Pin
CDP180224-Aug-16 3:23
CDP180224-Aug-16 3:23 
GeneralRe: C# Object Initializer Syntax Pin
Ian Shlasko24-Aug-16 3:29
Ian Shlasko24-Aug-16 3:29 
GeneralRe: C# Object Initializer Syntax Pin
CDP180224-Aug-16 3:44
CDP180224-Aug-16 3:44 
GeneralRe: C# Object Initializer Syntax Pin
TheGreatAndPowerfulOz24-Aug-16 3:18
TheGreatAndPowerfulOz24-Aug-16 3:18 
JokeRe: C# Object Initializer Syntax Pin
Rage24-Aug-16 5:37
professionalRage24-Aug-16 5:37 

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.