Snippet: conditional operator (equal to null)

property value
IDE Visual Studio
Language C#
Title conditional operator (equal to null)
Shortcut con
Description conditional operator with condition whether the expression is equal to null
Snippet Types Expansion


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


(x == null) ? true : false