Method ToString
ToString<T>(IEnumerable<T>, string?, string?, string?)
Combines array elements to comma separated string inside round brackets.
public static string ToString<T>(IEnumerable<T> items, string? prefix = null, string? suffix = null, string? separator = null)
Parameters
items
IEnumerable<T>Array of items.
prefix
stringPrefix string to add before items text.
suffix
stringSuffix string to add after items text.
separator
stringSeparator string to add between each item text.
Returns
Type Parameters
T
Type 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
names
string[]Names.
values
T[]Values.
Returns
Type Parameters
T