| ZennoLab.Macros Assembly > ZennoLab.Macros Namespace > TextProcessing Class : Split Method |
Type: System.String
The source string.
Type: System.String
Delimiter for text in the string.
Type: System.String
The number of string after splitting.
public static IEnumerable<string> Split( string sourceString, string separator, string number )
Type: System.String
The source string.
Type: System.String
Delimiter for text in the string.
Type: System.String
The number of string after splitting.
Type: System.String
A new string after splitting.
var result = Macros.TextProcessing.Split("first;second;third;fourth;fifth", ";", "2").First(); return result; // result = "second"
$result = Macros::TextProcessing::Split("first;second;third;fourth;fifth", ";", "2")->First(); return $result; // result = "second"
Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.