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




Latest Courses