Click here to Skip to main content
15,900,816 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# Object Initializer Syntax Pin
#realJSOP24-Aug-16 2:29
professional#realJSOP24-Aug-16 2:29 
GeneralRe: C# Object Initializer Syntax Pin
Fabio Franco25-Aug-16 9:25
professionalFabio Franco25-Aug-16 9:25 
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
professional#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 
CDP1802 wrote:
It does not introduce any real benefit.

Lambda expressions? LINQ? Anonymous types?

There are plenty of cases where you need to initialize a new object but you can't use multiple statements to do it.

If you've never encountered one, then feel free to ignore the syntax. But that doesn't mean they don't exist! Smile | :)



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


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 
GeneralRe: C# Object Initializer Syntax Pin
Kiriander24-Aug-16 21:16
Kiriander24-Aug-16 21:16 
GeneralRe: C# Object Initializer Syntax Pin
Middle Manager25-Aug-16 2:21
Middle Manager25-Aug-16 2:21 
GeneralRe: C# Object Initializer Syntax Pin
Gerry Schmitz25-Aug-16 5:43
mveGerry Schmitz25-Aug-16 5:43 
GeneralRe: C# Object Initializer Syntax Pin
Kirk 1038982125-Aug-16 3:54
Kirk 1038982125-Aug-16 3:54 
GeneralRe: C# Object Initializer Syntax Pin
jfren48425-Aug-16 4:09
jfren48425-Aug-16 4:09 
GeneralRe: C# Object Initializer Syntax Pin
Middle Manager25-Aug-16 4:31
Middle Manager25-Aug-16 4:31 

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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   495 votes