Language.BuildList(IEnumerable<String>, String, String) Method

Definition

Given a list of string values generate a proper English list.

public static string BuildList (System.Collections.Generic.IEnumerable<string> values, string separator, string lastSeparator);
static member BuildList : seq<string> * string * string -> string
Public Shared Function BuildList (values As IEnumerable(Of String), separator As String, lastSeparator As String) As String

Parameters

values
IEnumerable<String>

Value in list.

separator
String

Separator between all elements except last.

lastSeparator
String

Last element separator.

Returns

String

Value in a proper English list.

Applies to