[DevExpress Support Team: CLONED FROM T465789: CodeRush - The "Convert to Null Coalescing Operation" refactoring is suggested in an invalid scenario]
The scenario in my original request has been fixed indeed, but an invalid refactoring is still suggested in cases like this:
double? nullable = null; var value = nullable.HasValue ? nullable.Value.ToString( System.Globalization.CultureInfo.InvariantCulture ) : null;
CodeRush refactors into
double? nullable = null; var value = nullable.Value.ToString( System.Globalization.CultureInfo.InvariantCulture ) ?? null;
Hi Dominic,
Thank you for pointing out this problem.
I have managed to reproduce this issue locally. You will be notified shortly when we prepare a fix.