Formats the array as a string, each element delimited by a seperator.
Namespace: System.ExtensionsAssembly: System.Extensions (in System.Extensions.dll) Version: 0.0.0.5 (0.0.0.5)
Syntax
C# |
---|
public static string ToDelimitedString<T>(
this T[] array,
string format,
string delimiter
)
|
Visual Basic |
---|
<ExtensionAttribute>
Public Shared Function ToDelimitedString(Of T) (
array As T(),
format As String,
delimiter As String
) As String |
Visual C++ |
---|
public:
[ExtensionAttribute]
generic<typename T>
static String^ ToDelimitedString(
array<T>^ array,
String^ format,
String^ delimiter
) |
F# |
---|
static member ToDelimitedString :
array : 'T[] *
format : string *
delimiter : string -> string
|
Parameters
- array
- Type: array<T>[]()[][]
The array to format.
- format
- Type: System..::..String
The format specifier for each element of the array.
- delimiter
- Type: System..::..String
The delimiting string to use.
Type Parameters
Return Value
Type:
StringThe array, formatted as as string, each element delimited by a seperator.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . 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