Link Details

Link 64496 thumbnail
User 225256 avatar

By mswatcher
via lostechies.com
Published: Feb 04 2008 / 14:16

I'm sure everyone's tired of hearing about C# 3.0 features like lambda expressions, extension methods, anonymous types and so on. Before you fall in love with the new features, there are a few oldies-but-goodies that revolve around the "?" character. I use a couple of these to stump interviewees who proclaim themselves to be C# experts. These question marks can provide a much cleaner, terser syntax for some fairly common C# usage patterns.
  • 10
  • 1
  • 1478
  • 395

Comments

Add your comment
User 238564 avatar

FlySwat replied ago:

0 votes Vote down Vote up Reply

I would not call these obscurities, but its a good article on the ternary operator (?) and the null coalescing operator (??).

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (10)



Voters Against This Link (1)