I need this: If the following formatted value is null, display N/A. Otherwise, display the formatted value. It needs to be with string interpolation. I tried to do something like nested interpolation:
$"{$"({someValue:N0})" ?? "N/A" }"
but the result is just empty string. Using .NET 7.
nullso the?? "N/A"part is completely superfluous.someValue?.ToString("N0") ?? "N/A"null!, but I'd say that any interpolated string handler that yieldsnullis broken because it didn't interpolate to astringinstance. The interpolated string handlers implemented in the BCL don't yieldnull.