Dereference as not-null value
is premium code action that allows for generating is {} variable
expression inside the if
statement condition:
This code action is also available in the form of intellisense:
Code completions are supported only by VisualStudio. When using VisualStudio with Resharper you need to review Resharper settings to make sure that they are not disabled. Check Using with Resharper section for more details.