Click here to Skip to main content
15,914,014 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: PNG Problem Pin
Afzaal Ahmad Zeeshan13-Sep-14 10:03
professionalAfzaal Ahmad Zeeshan13-Sep-14 10:03 
GeneralRe: PNG Problem Pin
Bassam Abdul-Baki13-Sep-14 10:34
professionalBassam Abdul-Baki13-Sep-14 10:34 
JokeRe: PNG Problem Pin
Brisingr Aerowing13-Sep-14 16:00
professionalBrisingr Aerowing13-Sep-14 16:00 
GeneralRe: PNG Problem Pin
Andy Brummer13-Sep-14 16:18
sitebuilderAndy Brummer13-Sep-14 16:18 
GeneralRe: PNG Problem Pin
Bassam Abdul-Baki15-Sep-14 0:47
professionalBassam Abdul-Baki15-Sep-14 0:47 
QuestionRe: PNG Problem Pin
Chad3F17-Sep-14 12:18
Chad3F17-Sep-14 12:18 
AnswerRe: PNG Problem Pin
Bassam Abdul-Baki18-Sep-14 12:36
professionalBassam Abdul-Baki18-Sep-14 12:36 
GeneralNow this is sweet Pin
Andy Brummer13-Sep-14 5:49
sitebuilderAndy Brummer13-Sep-14 5:49 
I was reading about the improvements in C# 6, and I can't wait to try this one out, even though the syntax is ugly as sin.

Quote:
Null Propagation Operator
The null propagation operator is a concise syntax that enables chaining ‘.’ operations without checking each receiver against null. We can write expressions such as:

C#
var zip = customers?.FirstOrDefault()?.Orders?.FirstOrDefault()?.Address?.Zip;


The value of zip is either the zip code of the first order from the first customer, or null if any of the expresssions return null (customers, FirstOrDefault(), Orders, FirstOrDefault(), or Address). If the Zip property of Address is a value type, zip is the the corresponding nullable value type.

This can simplify that “arrow” style of coding where we have multiple nested if statements where each if clause checks a variable against null.


from: http://thebillwagner.com/blog/overview-of-c-6-language-enhancements[^]

Curvature of the Mind now with 3D


GeneralRe: Now this is sweet Pin
Rob Philpott13-Sep-14 6:17
Rob Philpott13-Sep-14 6:17 
GeneralRe: Now this is sweet Pin
Andy Brummer13-Sep-14 7:21
sitebuilderAndy Brummer13-Sep-14 7:21 
GeneralRe: Now this is sweet Pin
Afzaal Ahmad Zeeshan13-Sep-14 6:46
professionalAfzaal Ahmad Zeeshan13-Sep-14 6:46 
GeneralRe: Now this is sweet Pin
CPallini13-Sep-14 7:35
mveCPallini13-Sep-14 7:35 
GeneralRe: Now this is sweet Pin
JMK-NI13-Sep-14 7:40
professionalJMK-NI13-Sep-14 7:40 
GeneralRe: Now this is sweet Pin
Kornfeld Eliyahu Peter13-Sep-14 8:12
professionalKornfeld Eliyahu Peter13-Sep-14 8:12 
GeneralRe: Now this is sweet Pin
Andy Brummer13-Sep-14 8:17
sitebuilderAndy Brummer13-Sep-14 8:17 
GeneralRe: Now this is sweet Pin
Kornfeld Eliyahu Peter13-Sep-14 19:58
professionalKornfeld Eliyahu Peter13-Sep-14 19:58 
GeneralRe: Now this is sweet Pin
Andy Brummer14-Sep-14 4:09
sitebuilderAndy Brummer14-Sep-14 4:09 
GeneralRe: Now this is sweet Pin
BillWoodruff13-Sep-14 18:12
professionalBillWoodruff13-Sep-14 18:12 
GeneralRe: Now this is sweet Pin
Kornfeld Eliyahu Peter13-Sep-14 19:59
professionalKornfeld Eliyahu Peter13-Sep-14 19:59 
GeneralRe: Now this is sweet Pin
Ravi Bhavnani13-Sep-14 12:11
professionalRavi Bhavnani13-Sep-14 12:11 
GeneralRe: Now this is sweet Pin
AspDotNetDev13-Sep-14 20:44
protectorAspDotNetDev13-Sep-14 20:44 
GeneralRe: Now this is sweet Pin
Andy Brummer14-Sep-14 4:18
sitebuilderAndy Brummer14-Sep-14 4:18 
GeneralRe: Now this is sweet Pin
AspDotNetDev14-Sep-14 8:05
protectorAspDotNetDev14-Sep-14 8:05 
GeneralRe: Now this is sweet Pin
Andy Brummer14-Sep-14 14:05
sitebuilderAndy Brummer14-Sep-14 14:05 
QuestionRe: Now this is sweet Pin
Maximilien14-Sep-14 3:00
Maximilien14-Sep-14 3:00 

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.