How to check if a string is really empty with C# - Code4IT
Is a string empty? What if it contains only white spaces? You shouldn't reinvent the wheel, since .NET exposes methods exactly for these cases: String.IsNullOrEmpty and String.IsNullOrWhiteSpace.
https://www.code4it.dev/blog/csharp-check-if-string-is-empty
How to check if a string is really empty with C# - Code4IT
Is a string empty? What if it contains only white spaces? You shouldn't reinvent the wheel, since .NET exposes methods exactly for these cases: String.IsNullOrEmpty and String.IsNullOrWhiteSpace.
https://www.code4it.dev/blog/csharp-check-if-string-is-empty