Telerik® JustCode™ by Progress

Once Telerik® JustCode™ detects that a return type mismatches the method type, several fixes will be provided.

Note

Language Support

Supported: C#, VB.NET

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

To change method type

  1. Position the caret over the underlined return expression.
  2. Press Alt+Enter. From the pop-up menu, select Change Type of 'AMethod' to 'int'

    Change Method Type
  3. Result:

    Change Method Type Result

To change member type

  1. Position the caret over the underlined return expression.
  2. Press Alt+Enter. From the pop-up menu, select Change Type of 's' to 'string'

    Change Member Type
  3. Result:

    Change Member Type Result

To return default value

  1. Position the caret over the underlined return expression.
  2. Press Alt+Enter. From the pop-up menu, select Return Default Value

    Return Default Value
  3. Result:

    Return Default Value Result

See Also