Method ToSeparated
- Namespace
- YndigoBlue.Velocity.Utils
- Assembly
- YndigoBlue.Velocity.dll
ToSeparated(List<string>, string)
Joins a list of strings with a custom separator.
public static string ToSeparated(this List<string> list, string separator)
Parameters
listList<string>The list of strings to join.
separatorstringThe separator to use between elements.
Returns
- string
A string with list elements separated by the specified separator.
ToSeparated(IEnumerable<string>, string)
Joins an enumerable of strings with a custom separator.
public static string ToSeparated(this IEnumerable<string> list, string separator)
Parameters
listIEnumerable<string>The enumerable of strings to join.
separatorstringThe separator to use between elements.
Returns
- string
A string with elements separated by the specified separator.