20
you are viewing a single comment's thread
view the rest of the comments
[-] Rogue@feddit.uk 2 points 2 years ago* (last edited 2 years ago)

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 != ""

this post was submitted on 14 May 2024
20 points (100.0% liked)

C Sharp

1806 readers
2 users here now

A community about the C# programming language

Getting started

Useful resources

IDEs and code editors

Tools

Rules

Related communities

founded 3 years ago
MODERATORS