Telerik® JustCode™ by Progress

Telerik® JustCode™ detects when a method return value is missing and provides two options to the users to fix it.

Note

Language Support

Supported: C#, VB.NET

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

To fix the method

  1. Position the caret at the end of the return statement.
  2. Press Alt+Enter. From the pop-up menu, you can select two options:

    Missing Method Return Value before
    • Change Type of <method name> to void

      The result is:

      Missing Method Return Value after 1
    • Return Default Value

      The result is:

      Missing Method Return Value after 2

See Also