Table of Contents

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

list List<string>

The list of strings to join.

separator string

The 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

list IEnumerable<string>

The enumerable of strings to join.

separator string

The separator to use between elements.

Returns

string

A string with elements separated by the specified separator.