The Insert Cast quick fix is available once JustCode has detected a type mismatch that cannot be resolved implicitly. JustCode underlines the type mismatch expression and suggests you to automatically insert a cast (or a safe cast whenever appropriate) 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 cast
Position the caret over the underlined expression.
Press Alt+Enter. From the pop-up menu, select Insert Cast to 'type'
The result is:
See Also