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