Table of Contents

Class StringExtensions

Namespace
ArcanaDevelopment.adTempus.Shared
Assembly
ArcanaDevelopment.adTempus.Shared.dll
public static class StringExtensions
Inheritance
object
StringExtensions

Methods

AppendWithSeparator(StringBuilder, string, string)

Appends a string to a StringBuilder, adding a separator if the StringBuilder is not empty.

public static void AppendWithSeparator(this StringBuilder target, string stringToAppend, string separator)

Parameters

NameTypeDescription
target StringBuilder

The StringBuilder to append to

stringToAppend string

The string to append

separator string

The separator to use when appending

Remarks

This method can be used, for example, to create comma-separated lists.