Snippet: conditional operator

property value
IDE VS Code
Language C#
Title conditional operator
Shortcut co
Description conditional operator

Placeholders

Identifier Tooltip Default Value
expression Expression to evaluate expression
false False expression false
true True expression true

Code

(expression) ? true : false