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 x yes
false False expression false yes
true True expression true yes

Code

(x) ? true : false