Change Procedure to Function Quick Fix

Adjusts a Sub procedure to be a Function procedure, and updates all usages.

This quick-fix is available for the ProcedureCanBeWrittenAsFunction inspection

Applicability

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

Examples


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