c sharp tenery operator on an action

Code Example - c sharp tenery operator on an action

                
                        var myAction = doIt ? new Action(() => { myBool = false; }) : () => { }; // should work