Gets a list of items from a specified string that are splited by a separator term.
Namespace: MonoSoftware.CoreAssembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)
Syntax
C# |
---|
public static string[] Split(
this string text,
string separator
) |
Visual Basic |
---|
<ExtensionAttribute>
Public Shared Function Split (
text As String,
separator As String
) As String() |
Visual C++ |
---|
public:
[ExtensionAttribute]
static array<String^>^ Split(
String^ text,
String^ separator
) |
F# |
---|
static member Split :
text : string *
separator : string -> string[]
|
Return Value
Type:
array<String>[]()[][]String array
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String. 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