Click or drag to resize

ExtensionsJoin Method (String, String)

Concatenates all the elements of a string array, using the specified separator between each element.

Namespace:  Cauldron
Assembly:  Cauldron (in Cauldron.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public static string Join(
	this string[] source,
	string separator
)

Parameters

source
Type: SystemString
An array that contains the elements 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.

Return Value

Type: String
A string that consists of the elements in value delimited by the separator string. If value is an empty array, 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 . 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