Doesn’t eliminate the extra underlying comparisons, but for the sexiness factor, you could use something like this:
(strA ?? "") == (strB ?? "")
or the slightly less sexy, but preferable form:
(strA ?? string.Empty) == (strB ?? string.Empty)
Doesn’t eliminate the extra underlying comparisons, but for the sexiness factor, you could use something like this:
(strA ?? "") == (strB ?? "")
or the slightly less sexy, but preferable form:
(strA ?? string.Empty) == (strB ?? string.Empty)