| C# | |
|---|---|
public static IEnumerable<string> Split( string sourceString, string separator, string number ) | |
Parameters
- sourceString
Type: System.String
Source string.
- separator
Type: System.String
Delimiter for text in the string.
- number
Type: System.String
The number of string after splitting.
Return Value
Type: System.String
A new string after splitting.
The following example shows call the Split method.
| C# | Copy Code |
|---|---|
var result = Macros.TextProcessing.Split("first;second;third;fourth;fifth", ";", "2").First(); return result; // result = "second" | |
| PHP | Copy Code |
|---|---|
$result = Macros::TextProcessing::Split("first;second;third;fourth;fifth", ";", "2")->First(); return $result; // result = "second" | |
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family