Telerik® JustCode™ by Progress

The Remove Cast quick fix is available once Telerik® JustCode™ has detected a redundant cast.

Note

Language Support

Supported: C#, VB.NET

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

Example

If you have a redundant cast, like in this statement:

Remove Cast Example

Telerik® JustCode™ will automatically underline the cast and report a warning.

To remove the redundant cast

  1. Position the caret over the underlined warning.

    Remove Cast Select
  2. Press Alt+Enter. From the pop-up menu, select Remove Cast.

    Remove Cast Result

See Also