Skip to content

SeparatorExtensions

Separator extensions for strings.

Methods

string IEnumerable.JoinComma()

Join strings with a comma separator. Example: abc, def, ghi

string IEnumerable.JoinCommaOr(bool orWithComma)

Join strings with a comma separator and final separator containing or. Example: abc, def or ghi

string IEnumerable.JoinCommaAnd(bool andWithComma)

Join strings with a comma separator and final separator containing and. Example: abc, def and ghi

string IEnumerable.JoinCommaAmpersand(bool andWithComma)

Join string with a comma separator and final separator containing ampersand. Example: abc, def & ghi

string IEnumerable.JoinFinalSeparator(string separator, string finalSeparator)

Join strings with a comma separator and selectable final separator. Example: abc, def {separator} ghi

string IEnumerable.JoinBullet()

Join strings in a bullet point list.

string IEnumerable.JoinNewLine(string prefix)

Join strings with a new line for each string.

string IEnumerable.JoinNewLineWithSpaces(int spaces)

Join strings with a new line for each string and spaces before each string.

string IDictionary.JoinBoth(string separator, string keyValueSeparator)

string IDictionary.JoinBothReverse(string separator, string valueKeySeparator)

string IDictionary.JoinKey(string separator)

string IDictionary.JoinValue(string separator)