Click or drag to resize

ExtensionsJoinT Method (IEnumerableT, String)

Concatenates the members of a collection, using the specified separator between each member.

Namespace:  Cauldron
Assembly:  Cauldron (in Cauldron.dll) Version: 3.2.0.2
Syntax
public static string Join<T>(
	this IEnumerable<T> source,
	string separator
)

Parameters

source
Type: System.Collections.GenericIEnumerableT
A collection that contains the objects to concatenate.
separator
Type: SystemString
The string to use as a separator. separator is included in the returned string only if values has more than one element.

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:Cauldron.Extensions.Join``1(System.Collections.Generic.IEnumerable{``0},System.String)"]

Return Value

Type: String
A string that consists of the members of values delimited by the separator string. If values has no members, the method returns Empty.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptionsource is null.
See Also