Let conditional operator ?: work on nullable #17204
Labels
Area-External
Resolution-External
The behavior lies outside the functionality covered by this repository
Sometimes we have
bool?
condition. Such asdictionary?.TryGetValue(key,out value)
When I want it to
return dictionary?.TryGetValue(key,out value) ? value : null
it cause errorMaybe we should support
?:??
like this?return dictionary?.TryGetValue(key,out value) ? value : null ?? null
or maybe just
The text was updated successfully, but these errors were encountered: