| ListExtensionsToDelimitedStringT Method (IEnumerableT, String) |
Creates a string with the items of a list separated by the specified delimiter.
Namespace:
Ookii.Jumbo
Assembly:
Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 2.0.0
Syntax public static string ToDelimitedString<T>(
this IEnumerable<T> list,
string delimiter
)
<ExtensionAttribute>
Public Shared Function ToDelimitedString(Of T) (
list As IEnumerable(Of T),
delimiter As String
) As String
public:
[ExtensionAttribute]
generic<typename T>
static String^ ToDelimitedString(
IEnumerable<T>^ list,
String^ delimiter
)
[<ExtensionAttribute>]
static member ToDelimitedString :
list : IEnumerable<'T> *
delimiter : string -> string
Parameters
- list
- Type: System.Collections.GenericIEnumerableT
A list. - delimiter
- Type: SystemString
The delimiter to use.
Type Parameters
- T
- The type of the elements.
Return Value
Type:
StringA string containing the delimited list.
Usage Note
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).
See Also