adTempus API
ArcanaDevelopment.adTempus.Shared Namespace / StringExtensions Class / AppendWithSeparator Method
The StringBuilder to append to
The string to append
The separator to use when appending


In This Topic
    AppendWithSeparator Method
    In This Topic
    Appends a string to a StringBuilder, adding a separator if the StringBuilder is not empty.
    Syntax
    'Declaration
     
    
    <ExtensionAttribute()>
    Public Shared Sub AppendWithSeparator( _
       ByVal target As StringBuilder, _
       ByVal stringToAppend As String, _
       ByVal separator As String _
    ) 
    [Extension()]
    public static void AppendWithSeparator( 
       StringBuilder target,
       string stringToAppend,
       string separator
    )
    [Extension()]
    public:
    static void AppendWithSeparator( 
       StringBuilder^ target,
       String^ stringToAppend,
       String^ separator
    ) 

    Parameters

    target
    The StringBuilder to append to
    stringToAppend
    The string to append
    separator
    The separator to use when appending
    Remarks
    This method can be used, for example, to create comma-separated lists.
    See Also