-
Notifications
You must be signed in to change notification settings - Fork 35
M_CodeJam_Strings_StringExtensions_Join
Concatenates the members of a constructed IEnumerable(T) collection of type String, using the specified separator between each member.
Namespace: CodeJam.Strings
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public static string Join(
this IEnumerable<string> values,
string separator
)
VB
<ExtensionAttribute>
Public Shared Function Join (
values As IEnumerable(Of String),
separator As String
) As String
F#
[<ExtensionAttribute>]
static member Join :
values : IEnumerable<string> *
separator : string -> string
- values
- Type: System.Collections.Generic.IEnumerable(String)
A collection that contains the strings to concatenate. - separator
- Type: System.String
The string to use as a separator. separator is included in the returned string only if values has more than one element.
Type: String
A string that consists of the members of values delimited by the separator string. If values has no members, the method returns Empty.
In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable(String). 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).
Infix form of string.Join(string,IEnumerable{string}).
StringExtensions Class
Join Overload
CodeJam.Strings Namespace