Wasn't aware of the ?? operator until reading James Michael Hare's 'Five Little Wonders That Make Code Better' post:
string name = value ?? string.Empty;
http://geekswithblogs.net/BlackRabbitCoder/archive/2010/08/26/c.net-five-little-wonders-that-make-code-better-1-of.aspx
No comments:
Post a Comment