adTempus API
ArcanaDevelopment.adTempus.Shared Namespace / StringUtil Class / EmptyToNull Method
The string to convert


In This Topic
    EmptyToNull Method
    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 source As String _
    ) As String
    [CanBeNull()]
    public static string EmptyToNull( 
       string source
    )
    [CanBeNull()]
    public:
    static String^ EmptyToNull( 
       String^ source
    ) 

    Parameters

    source
    The string to convert

    Return Value

    The source, or a null reference (Nothing in Visual Basic) if source is an empty string.
    Remarks
    A string containing only whitespace is treated as empty.
    See Also