All docs
V20.1
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

CRR0014 - The variable is assigned twice in succession

This analyzer detects variables which receive two assignments in succession.

bool isSelected = false;
isSelected = true; 

How to Fix the Issue

Remove the first assignment.

bool isSelected;
isSelected = true; 

How to Enable the Diagnostic

Choose Variable is assigned twice in succession in the Editor | Language | Code Analysis | Code Issues Catalog options page and check the Enabled checkbox.

Enable