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
items
IEnumerable<T>Array of items.
prefix
stringPrefix string to add before items text. Optional. Uses '(' if not specified.
suffix
stringSuffix string to add after items text. Optional. Uses '(' if not specified.
separator
stringSeparator string to add between each item text. Optional. Uses ', ' if not specified.
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
Type of values array.