NAnt SDK Documentation - v0.92 |

# StringUtils.IsNullOrEmpty Method

NOTE: This method is now obsolete.

StringUtils.IsNullOrEmpty method is depreciated. Use System.String.IsNullOrEmpty(string) instead.

Indicates whether or not the specified String is a null reference (Nothing in Visual Basic) or an Empty string.

[Visual Basic]
<Obsolete(Message:="StringUtils.IsNullOrEmpty method is depreciated. Use System.String.IsNullOrEmpty(string) instead.", IsError:=False)>
Public Shared Function IsNullOrEmpty( _
ByVal value As String _
) As Boolean
[C#]
[Obsolete(Message="StringUtils.IsNullOrEmpty method is depreciated. Use System.String.IsNullOrEmpty(string) instead.", IsError=False)]
public static bool IsNullOrEmpty(
string value
);

#### Parameters

value
  The value to check.

#### Return Value

true if value is a null reference (Nothing in Visual Basic) or an empty string (""); otherwise, false.

#### See Also

StringUtils Class | NAnt.Core.Util Namespace