Remove Redundant Assignment
In This Article
Removes redundant initialization of a variable.
#Availability
Available from the context menu or via shortcuts:
- when the edit cursor or caret is on a field’s name, provided that the field is set to the default value.
#Example
private int │_MyField = 0;
Private │_MyField As Integer = 0
Result:
private int│ _MyField;
Private │_MyField As Integer