String.Concat(T) Method (IEnumerable(T))
Concatenates the members of an IEnumerable(T) implementation.
Assembly: mscorlib (in mscorlib.dll)
[<ComVisibleAttribute(false)>] static member Concat : values:IEnumerable<'T> -> string
The type of the members of values.
Return ValueType: System.String
The concatenated members in values.
values is a null reference (Nothing in Visual Basic).
The method concatenates each object in values; it does not add any delimiters.
An Empty string is used in place of any null argument.
is a convenience method that lets you concatenate each element in an IEnumerable(T) collection without first converting the elements to strings. It is particularly useful with Language-Integrated Query (LINQ) query expressions, as the example illustrates. The string representation of each object in the IEnumerable(T) collection is derived by calling that object's ToString method.
The following example defines a very simple Animal class that contains the name of an animal and the order to which it belongs. It then defines a List(T) object to contain a number of Animal objects. The Enumerable.Where extension method is called to extract the Animal objects whose Order property equals "Rodent". The result is passed to the method and displayed to the console.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.