Telerik® JustCode™ by Progress

The Remove Unused Private Member quick fix is available once Telerik® JustCode™ has detected a private member that is not used. Telerik® JustCode™ underlines the member and suggests you remove it.

Note

Language Support

Supported: C#

Not Supported: VB.NET

Not relevant: ASP.NET, JavaScript, XAML, HTML

To remove unused private member

  1. Position the caret over the underlined member.
  2. Press Alt+Enter. From the pop-up menu, select Remove 'a'

    Quick Fix Remove Unused Private Member

To remove only assigned to private member

  1. Position the caret over the underlined member.
  2. Press Alt+Enter. From the pop-up menu, select Remove 'a' and All Assignments

    Quick Fix Remove Only Assigned To Private Member

To remove only assigned to private member and keep side-effects

  1. Position the caret over the underlined member.
  2. Press Alt+Enter. From the pop-up menu, select Remove 'a' and Keep Side-Effect Assignmets

    Quick Fix Remove Only Assigned To Private Member And Keep Side Effects

See Also