paint-brush
How to check if a string is REALLY empty with C#by@davidebellone
232 reads

How to check if a string is REALLY empty with C#

by Davide Bellone | Code4IT3mFebruary 5th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

C#.NET provides easy methods to handle your strings. String.NET native methods: String.IsnullOrEmpty and String.ArenullOrWhitespace. String IsNullOrEmpty checks only if the string passed as a parameter has at least one symbol, so it doesn't recognize strings composed by empty characters. C# provides two methods to achieve this result, StringIsNullOrWhiteSpace and String.IsNull.OrEmpty. It checks both empty characters and for escape characters.
featured image - How to check if a string is REALLY empty with C#
Davide Bellone | Code4IT HackerNoon profile picture
Davide Bellone | Code4IT

Davide Bellone | Code4IT

@davidebellone

I write about .NET development and general coding stuff. - developer - blogger - speaker -

Learn More
LEARN MORE ABOUT @DAVIDEBELLONE'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Davide Bellone | Code4IT HackerNoon profile picture
Davide Bellone | Code4IT@davidebellone
I write about .NET development and general coding stuff. - developer - blogger - speaker -

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here