Sitecore 5.0 API

MainUtil.Join Method (String, String[])

Joins an array of strings excluding any empty string from the result.

[Visual Basic]
Overloads Public Shared Function Join( _
   ByVal sSeparator As String, _
   ByVal values As String() _
) As String
[C#]
public static string Join(
   string sSeparator,
   string[] values
);

Parameters

sSeparator
A seperator string.
values
Strings

Return Value

The concatenated strings with the seperator in between.

Example

  string s0 = MainUtil.Join(",", "Hello", " ", "world"); // "Hello,world"

See Also

MainUtil Class | Sitecore Namespace | MainUtil.Join Overload List