C Sharp Tenery Operator по действию
var myAction = doIt ? new Action(() => { myBool = false; }) : () => { }; // should work
Rich Rattlesnake
var myAction = doIt ? new Action(() => { myBool = false; }) : () => { }; // should work