Home » C# String IsNullOrWhiteSpace() method

C# String IsNullOrWhiteSpace() method

by Online Tutorials Library

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()

You may also like