共用方式為


StringExtensions.Join(IEnumerable<String>, String) 方法

定義

使用「分隔符」字串做為分隔符,將字串聯結在一起

public:
[System::Runtime::CompilerServices::Extension]
 static System::String ^ Join(System::Collections::Generic::IEnumerable<System::String ^> ^ values, System::String ^ separator);
public static string Join (this System.Collections.Generic.IEnumerable<string> values, string separator);
static member Join : seq<string> * string -> string
<Extension()>
Public Function Join (values As IEnumerable(Of String), separator As String) As String

參數

values
IEnumerable<String>

字串陣列

separator
String

分隔符字串

傳回

新字串

適用於