Click or drag to resize

ExtensionsJoin Method (Object, String)

Concatenates the elements of an object 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 Object[] source,
	string separator
)

Parameters

source
Type: SystemObject
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 of values delimited by the separator string. If values 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