Extensions.MakeList Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| MakeList(String[]) |
Makes a list from parameters. |
| MakeList(IEnumerable<String>, String, String) |
Makes a string list. |
MakeList(String[])
Makes a list from parameters.
public static string MakeList (params string[] elements);
static member MakeList : string[] -> string
Public Function MakeList (ParamArray elements As String()) As String
Parameters
- elements
- String[]
The elements to combine into a list.
Returns
A string.
Applies to
MakeList(IEnumerable<String>, String, String)
Makes a string list.
public static string MakeList (System.Collections.Generic.IEnumerable<string> elements, string separator = ";", string escape = "__semi");
static member MakeList : seq<string> * string * string -> string
Public Function MakeList (elements As IEnumerable(Of String), Optional separator As String = ";", Optional escape As String = "__semi") As String
Parameters
- elements
- IEnumerable<String>
The elements to combine into a list.
- separator
- String
The separator character between elements in a string list.
- escape
- String
The escape string for separator characters.
Returns
A string.