• Rogue@feddit.uk
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    5 个月前

    I’ve always used the Nullable context so typically I’m just using string.IsNullOrEmpty to determine empty strings, I’m already confident null isn’t leaking. But your explanation does make sense.

    I’m now wondering why I’ve never just used myStr != ""