Summary
Concatenates a specified separator
string
between each
element of a specified System.Collections.Specialized.StringCollection
, yielding a
single concatenated string.
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core .Util - Containing Type
- StringUtils
Syntax
public static string Join(string separator, StringCollection value)
Remarks
For example if separator is ", " and the elements
of value are "apple", "orange", "grape", and "pear",
NAnt.Core.Util.StringUtils.Join(System.String,System.Collections.Specialized.StringCollection)
returns "apple, orange,
grape, pear".
If separator is null
, an empty
string (System.String.Empty
) is used instead.
Parameters
Name | Type | Description |
---|---|---|
separator | string | A string . |
value | StringCollection | A System.Collections.Specialized.StringCollection . |
Return Value
Type | Description |
---|---|
string |
A string consisting of the elements of value
interspersed with the separator string.
|