EnumerableExtensionsJoinT(IEnumerableT, String) Method
Concatenates the items of the
source collection into a new
string instance
using the specified
separator between the items.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
public static string Join<T>(
this IEnumerable<T> source,
string? separator
)
<ExtensionAttribute>
Public Shared Function Join(Of T) (
source As IEnumerable(Of T),
separator As String
) As String
public:
[ExtensionAttribute]
generic<typename T>
static String^ Join(
IEnumerable<T>^ source,
String^ separator
)
[<ExtensionAttribute>]
static member Join :
source : IEnumerable<'T> *
separator : string -> string
- source IEnumerableT
- The IEnumerableT to create a string from.
- separator String
- The separator to be used between the items. If or empty, then the result will be concatenated without using separators.
- T
- The type of the elements of source.
StringA
string that consists of the elements of the
source collection delimited by the specified
separator.In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableT. 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).