Click here to Skip to main content
13,201,050 members (54,663 online)

Welcome to the Lounge

   

For discussing anything related to a software developer's life. Technical discussions are encouraged, but click here to ask your programming questions.

The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct, no programming questions and please don't post ads.
 
GeneralRe: someone save me Pin
jgasm7-Oct-08 13:41
memberjgasm7-Oct-08 13:41 
GeneralRe: someone save me Pin
Rocky Moore7-Oct-08 16:41
memberRocky Moore7-Oct-08 16:41 
GeneralRe: someone save me Pin
John C7-Oct-08 19:16
memberJohn C7-Oct-08 19:16 
GeneralRe: someone save me Pin
jgasm8-Oct-08 4:56
memberjgasm8-Oct-08 4:56 
GeneralRe: someone save me Pin
James Brown7-Oct-08 21:00
memberJames Brown7-Oct-08 21:00 
GeneralC# 4.0 Pin
Jamie Nordmeyer1-Oct-08 10:20
memberJamie Nordmeyer1-Oct-08 10:20 
General.Net 2.0 Pin
Ennis Ray Lynch, Jr.1-Oct-08 10:22
memberEnnis Ray Lynch, Jr.1-Oct-08 10:22 
GeneralRe: .Net 2.0 Pin
Jamie Nordmeyer1-Oct-08 10:25
memberJamie Nordmeyer1-Oct-08 10:25 
GeneralRe: .Net 2.0 Pin
Christian Graus1-Oct-08 10:38
mvpChristian Graus1-Oct-08 10:38 
Generalomg yes Pin
Ennis Ray Lynch, Jr.1-Oct-08 10:40
memberEnnis Ray Lynch, Jr.1-Oct-08 10:40 
GeneralRe: .Net 2.0 Pin
Jamie Nordmeyer1-Oct-08 10:42
memberJamie Nordmeyer1-Oct-08 10:42 
GeneralRe: .Net 2.0 Pin
melchizidech1-Oct-08 23:05
membermelchizidech1-Oct-08 23:05 
GeneralRe: .Net 2.0 Pin
Member 46448822-Oct-08 0:30
memberMember 46448822-Oct-08 0:30 
GeneralRe: .Net 2.0 Pin
chaiguy13372-Oct-08 18:36
memberchaiguy13372-Oct-08 18:36 
Jamie Nordmeyer wrote:
I saw someone comment on that on another forum.


Daniel Grunwald, TheCodeKing and myself came up with that here[^]. You're missing the final part tho, which is a ?? operator to act as the "default":

int? x = Company?.Person["Bob"]?.Age ?? null;

Of course setting null as the "default default" would also work and be handy.

“Time and space can be a bitch.”
–Gushie, Quantum Leap

{o,o}.oO(   Check out my blog!   )
|)””’)                piHole.org
-”-”-

GeneralRe: .Net 2.0 Pin
Jamie Nordmeyer3-Oct-08 3:24
memberJamie Nordmeyer3-Oct-08 3:24 
GeneralRe: .Net 2.0 Pin
chaiguy13373-Oct-08 3:31
memberchaiguy13373-Oct-08 3:31 
GeneralRe: .Net 2.0 Pin
chaiguy13373-Oct-08 3:04
memberchaiguy13373-Oct-08 3:04 
GeneralRe: .Net 2.0 Pin
Ken_OPIS3-Oct-08 10:26
memberKen_OPIS3-Oct-08 10:26 
GeneralRe: .Net 2.0 Pin
mvonballmo10-Oct-08 2:47
membermvonballmo10-Oct-08 2:47 
GeneralRe: .Net 2.0 Pin
Scott Dorman6-Oct-08 6:19
mvpScott Dorman6-Oct-08 6:19 
GeneralRe: .Net 2.0 Pin
Scott Dorman6-Oct-08 6:22
mvpScott Dorman6-Oct-08 6:22 
GeneralRe: .Net 2.0 Pin
Todd Smith1-Oct-08 10:40
memberTodd Smith1-Oct-08 10:40 
GeneralRe: .Net 2.0 Pin
Ennis Ray Lynch, Jr.1-Oct-08 10:44
memberEnnis Ray Lynch, Jr.1-Oct-08 10:44 
GeneralRe: .Net 2.0 Pin
Kevin McFarlane3-Oct-08 4:50
memberKevin McFarlane3-Oct-08 4:50 
GeneralRe: .Net 2.0 Pin
Oshtri Deka1-Oct-08 23:21
memberOshtri Deka1-Oct-08 23:21 
GeneralRe: C# 4.0 Pin
Christian Graus1-Oct-08 10:31
mvpChristian Graus1-Oct-08 10:31 
GeneralRe: C# 4.0 Pin
Jamie Nordmeyer1-Oct-08 10:33
memberJamie Nordmeyer1-Oct-08 10:33 
GeneralRe: C# 4.0 Pin
Christian Graus1-Oct-08 10:38
mvpChristian Graus1-Oct-08 10:38 
GeneralRe: C# 4.0 Pin
Giampaolo Papotti2-Oct-08 3:37
memberGiampaolo Papotti2-Oct-08 3:37 
GeneralRe: C# 4.0 Pin
Scott Dorman6-Oct-08 6:25
mvpScott Dorman6-Oct-08 6:25 
GeneralRe: C# 4.0 Pin
andy_p2-Oct-08 11:21
memberandy_p2-Oct-08 11:21 
GeneralRe: C# 4.0 Pin
harold aptroot1-Oct-08 10:38
memberharold aptroot1-Oct-08 10:38 
GeneralRe: C# 4.0 Pin
Christian Graus1-Oct-08 10:40
mvpChristian Graus1-Oct-08 10:40 
GeneralRe: C# 4.0 Pin
harold aptroot1-Oct-08 11:35
memberharold aptroot1-Oct-08 11:35 
GeneralRe: C# 4.0 Pin
Christian Graus1-Oct-08 13:31
mvpChristian Graus1-Oct-08 13:31 
GeneralRe: C# 4.0 Pin
Donkey Master1-Oct-08 22:17
memberDonkey Master1-Oct-08 22:17 
GeneralRe: C# 4.0 Pin
Jamie Nordmeyer2-Oct-08 2:17
memberJamie Nordmeyer2-Oct-08 2:17 
GeneralRe: C# 4.0 Pin
Donkey Master2-Oct-08 5:01
memberDonkey Master2-Oct-08 5:01 
GeneralRe: C# 4.0 Pin
Leslie Sanford1-Oct-08 11:17
memberLeslie Sanford1-Oct-08 11:17 
GeneralRe: C# 4.0 Pin
harold aptroot1-Oct-08 11:36
memberharold aptroot1-Oct-08 11:36 
GeneralRe: C# 4.0 Pin
Mladen Jankovic1-Oct-08 12:20
memberMladen Jankovic1-Oct-08 12:20 
GeneralRe: C# 4.0 Pin
harold aptroot1-Oct-08 12:44
memberharold aptroot1-Oct-08 12:44 
GeneralRe: C# 4.0 Pin
Christian Graus1-Oct-08 13:32
mvpChristian Graus1-Oct-08 13:32 
GeneralRe: C# 4.0 Pin
shiftedbitmonkey2-Oct-08 8:22
membershiftedbitmonkey2-Oct-08 8:22 
GeneralRe: C# 4.0 Pin
harold aptroot2-Oct-08 8:30
memberharold aptroot2-Oct-08 8:30 
GeneralRe: C# 4.0 Pin
shiftedbitmonkey2-Oct-08 8:35
membershiftedbitmonkey2-Oct-08 8:35 
GeneralRe: C# 4.0 Pin
harold aptroot2-Oct-08 9:01
memberharold aptroot2-Oct-08 9:01 
GeneralRe: C# 4.0 Pin
shiftedbitmonkey2-Oct-08 9:17
membershiftedbitmonkey2-Oct-08 9:17 
GeneralRe: C# 4.0 Pin
harold aptroot2-Oct-08 9:37
memberharold aptroot2-Oct-08 9:37 
GeneralRe: C# 4.0 Pin
andy_p2-Oct-08 11:28
memberandy_p2-Oct-08 11: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 |
Web03 | 2.8.171020.1 | Last Updated 23 Oct 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid