Showing posts with label ternary. Show all posts
Showing posts with label ternary. Show all posts

Saturday, October 21, 2017

rare case of ternary operator I approve of

var  thingamajig= Request.QueryString["thingamajig"] ?? Request.Form["thingamajig"];

see  null-coalescing operator ?? double question-mark