In This Topic
Returns the original string, or null if the source is empty, null, or whitespace.
Syntax
'Declaration
<CanBeNullAttribute()>
Public Shared Function EmptyToNull( _
ByVal As String _
) As String
[CanBeNull()]
public static string EmptyToNull(
string
)
[CanBeNull()]
public:
static String^ EmptyToNull(
String^
)
Parameters
- source
- The string to convert
Return Value
The , or a null reference (Nothing in Visual Basic) if is an empty string.
See Also