Skip to content

M_CodeJam_Strings_StringExtensions_Join__1_1

Andrew Koryavchenko edited this page Jun 17, 2018 · 6 revisions

StringExtensions.Join(T) Method (IEnumerable(T), String)

Concatenates the members of a collection, using the specified separator between each member.

Namespace: CodeJam.Strings
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public static string Join<T>(
	this IEnumerable<T> values,
	string separator
)

VB

<ExtensionAttribute>
Public Shared Function Join(Of T) ( 
	values As IEnumerable(Of T),
	separator As String
) As String

F#

[<ExtensionAttribute>]
static member Join : 
        values : IEnumerable<'T> * 
        separator : string -> string 

Parameters

 

values
Type: System.Collections.Generic.IEnumerable(T)
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 Parameters

 

T
[Missing documentation for "M:CodeJam.Strings.StringExtensions.Join1(System.Collections.Generic.IEnumerable{0},System.String)"]

Return Value

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.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable(T). 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).

See Also

Reference

StringExtensions Class
Join Overload
CodeJam.Strings Namespace

Clone this wiki locally