Javatpoint Logo
Javatpoint Logo

C# String IsNullOrWhiteSpace()

The C# IsNullOrWhiteSpace() method is used to check whether the specified string is null, or consists only of white-space characters. It returns boolean value either True or False.

Signature

Parameter

str: it is a string parameter which is used to check null, white-space in string.

Return

It returns boolean value.


C# String IsNullOrWhiteSpace() Method Example

Output:

False
True
True
Next TopicC# String Join()





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA