String.Concat Method (IEnumerable(String))
Assembly: mscorlib (in mscorlib.dll)
[<ComVisibleAttribute(false)>] static member Concat : values:IEnumerable<string> -> string
Return ValueType: System.String
The concatenated strings in values.
values is a null reference (Nothing in Visual Basic).
The method concatenates each object in values; it does not add any delimiters. To specify a delimiter between each member of values, call the Join(String, IEnumerable(String)) method.
An Empty string is used in place of any null argument.
is a convenience method that lets you concatenate each element in an IEnumerable(Of String) collection without first converting the elements to a string array. It is particularly useful with Language-Integrated Query (LINQ) query expressions. The following example passes a List(Of String) object that contains either the uppercase or lowercase letters of the alphabet to a lambda expression that selects letters that are equal to or greater than a particular letter (which, in the example, is "M"). The IEnumerable(Of String) collection that is returned by the Enumerable.Where method is passed to the method to display the result as a single string.
The following example uses the Sieve of Eratosthenes algorithm to calculate the prime numbers that are less than or equal to 100. It assigns the result to a List(T) object of type String, which it then passes to the method.