StringJoiner


Description:

public StringJoiner (string delimiter, string prefix = "", string suffix = "")

Constructs a StringJoiner with the given delimiter, prefix, and suffix.

Example:

    var joiner = new StringJoiner (", ", "(", ")");

Parameters:

delimiter

the separator placed between elements.

prefix

the string prepended to the result.

suffix

the string appended to the result.