Javatpoint Logo
Javatpoint Logo

C# String IsNullOrEmpty()

The C# IsNullOrEmpty() method is used to check whether the specified string is null or an Empty string. It returns a boolean value either true or false.

Signature

Parameter

str: it is a string parameter which is used to check string.

Return

It returns boolean value.


C# String IsNullOrEmpty() Method Example

Output:

False
True





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