Convert.ToString should not return nullable string #109285
Replies: 1 comment 4 replies
-
This would be a breaking change, would modify a behavior we've had for 20 years, would make it no longer possible to discern when the input was itself All of these are undesirable changes and would remove part of the purpose/intent of the API. If you have a need for |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As title,
Convert.ToString(object?)
and its overloadConvert.ToString(object?, IFormatProvider?)
should not return string with nullable annotation:I know the
value.ToString()
may return null string but instead maybe it should be replaced with:Beta Was this translation helpful? Give feedback.
All reactions