Method ToString
ToString<T>(IEnumerable<T>, string?, string?, string?)
Combines array elements to string inside prefix
and suffix. Array elements are separated by the
string specified in the separator parameter.
public static string ToString<T>(IEnumerable<T> items, string? prefix = null, string? suffix = null, string? separator = null)
Parameters
itemsIEnumerable<T>Array of items.
prefixstringPrefix string to add before items text. Optional. Uses '(' if not specified.
suffixstringSuffix string to add after items text. Optional. Uses '(' if not specified.
separatorstringSeparator string to add between each item text. Optional. Uses ', ' if not specified.
Returns
Type Parameters
TType of the array item.
ToString<T>(string[]?, T[])
Combines name and value pairs to string.
public static string ToString<T>(string[]? names, T[] values)
Parameters
namesstring[]Names.
valuesT[]Values.
Returns
Type Parameters
TType of values array.