"Replace with direct cast" should always be available.

The "Replace with direct cast" command is currently available when ReSharper sees a possible NullReferenceException when casting with the "as" operator.

Otherwise the command is not available.

My suggestion is to always provide it for "as" commands, no matter whether a NullReferenceException might occur or not.

Thanks
Uwe

Please sign in to leave a comment.