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.
Comments
FlySwat replied ago:
I would not call these obscurities, but its a good article on the ternary operator (?) and the null coalescing operator (??).
Voters For This Link (10)
Voters Against This Link (1)