Remove Unassigned Variable Usage Quick Fix

Removes an instruction that references a variable that isn't assigned. This operation may break the code.

This quick-fix is available for the UnassignedVariableUsage inspection

Applicability

This quick-fix can be applied as a single operation at the following scopes:
  • Procedure
  • Module
  • Project

Examples


Rubberduck.CodeAnalysis.QuickFixes.Concrete.RemoveUnassignedVariableUsageQuickFix.cs (Prerelease-v2.5.9.6294)