Snippet: conditional operator

property value
IDE Visual Studio
Language C#
Title conditional operator
Shortcut co
Description conditional operator
Snippet Types Expansion

Placeholders

Identifier Tooltip Default Value Editable Function Type Name
expression Expression to evaluate expression yes
false False expression false yes
true True expression true yes

Code

(expression) ? true : false