Telerik® JustCode™ by Progress

The Insert Safe Cast quick fix is available once Telerik® JustCode™ has detected a type mismatch that cannot be resolved implicitly. Telerik® JustCode™ underlines the type mismatch expression and suggests you to automatically insert a safe cast (or a cast) to the type of the expression standing on the left side of the assignment.

Note

Language Support

Supported: C#, VB.NET

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

To insert a safe cast

  1. Position the caret over the underlined expression.

  2. Press Alt+Enter. From the pop-up menu, select Insert Safe Cast to 'type'

    Insert Safe Cast Select
  3. The result is:

    Insert Safe Cast Created

See Also

Other Resources