NAnt SDK Documentation - v0.92 |

# StringUtils.Join Method

Concatenates a specified separator String between each element of a specified StringCollection, yielding a single concatenated string.

[Visual Basic]
Public Shared Function Join( _
ByVal separator As String, _
ByVal value As StringCollection _
) As String
[C#]
public static string Join(
string separator,
StringCollection value
);

#### Parameters

separator
  A String.
value
  A StringCollection.

#### Return Value

A String consisting of the elements of value interspersed with the separator string.

#### Remarks

For example if separator is ", " and the elements of value are "apple", "orange", "grape", and "pear", Join returns "apple, orange, grape, pear".

If separator is a null reference (Nothing in Visual Basic), an empty string (Empty) is used instead.

#### See Also

StringUtils Class | NAnt.Core.Util Namespace