The Remove Cast quick fix is available once JustCode has detected a redundant cast.
Note |
|---|
Language Support Supported: C#, VB.NET Not relevant: ASP.NET, XAML, JavaScript, HTML |
ExampleIf you have a redundant cast, like in this statement:
JustCode will automatically underline the cast and report a warning.
To remove the redundant cast
Position the caret over the underlined warning.
Press Alt+Enter. From the pop-up menu, select Remove Cast.
See Also