Refactor with "Simplify Instance Declaration" to make declarations of objects easier to understand. The refactoring eliminates the extraneous setting of an object to a new instance of its type.
Access
Access "Simplify Instance Declaration" via the context menu of the text editor (Right-click or Shift+F10), or via the Quick Actions and Refactoring menu (Shift+Alt+Q). The command is available only when the text caret is on the declaration of a local object.
![](/~/media/wholetomato/kb/documentation/simplify-instance-declaration/simplifymenu.ashx?la=en&hash=8EB9BB9883FB88FE7771F70924A210A514748503)
Simplification
After invoking the refactoring, the object is created and initialized in a simpler, but equivalent, declaration.
![](/~/media/wholetomato/kb/documentation/simplify-instance-declaration/simplifyafter.ashx?la=en&hash=9E2DD22CB3D2DF178E7A6ED890367EE984AD8C4A)