StringUtilities..::..IsNullOrWhiteSpace Method (Nullable<(Of <(<'String>)>)>, String)

Returns replacementValue if value is null, empty, or consists only of white-space characters; otherwise returns value. Mimics SQL Server's ISNULL function for strings, but uses IsNullOrWhiteSpace semantics.

Namespace:  Tortuga.Anchor
Assembly:  Tortuga.Anchor (in Tortuga.Anchor.dll)

Syntax


public static string IsNullOrWhiteSpace(
	this Nullable<string> value,
	string replacementValue
)
<ExtensionAttribute> _
Public Shared Function IsNullOrWhiteSpace ( _
	value As Nullable(Of String), _
	replacementValue As String _
) As String

Parameters

value
Type: Nullable<(Of <(<'String>)>)>
The string to check.
replacementValue
Type: String
The value to use if value is null, empty, or white-space.

Return Value

The original string or the replacement value.