Table of Contents

Method ToString

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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 string

Prefix string to add before items text. Optional. Uses '(' if not specified.

suffix string

Suffix string to add after items text. Optional. Uses '(' if not specified.

separator string

Separator string to add between each item text. Optional. Uses ', ' if not specified.

Returns

string

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

string

Type Parameters

T

Type of values array.