StringExtensionsDelimit(String, String, Int32, RegexOptions) Method
Delimits once a string by the given delimiter.
Namespace: DevCase.Extensions.StringExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static string Delimit(
this string sender,
string delimiter,
int count,
RegexOptions options = RegexOptions.None
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function Delimit (
sender As String,
delimiter As String,
count As Integer,
Optional options As RegexOptions = RegexOptions.None
) As String
Dim sender As String
Dim delimiter As String
Dim count As Integer
Dim options As RegexOptions
Dim returnValue As String
returnValue = sender.Delimit(delimiter,
count, options)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static String^ Delimit(
String^ sender,
String^ delimiter,
int count,
RegexOptions options = RegexOptions::None
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member Delimit :
sender : string *
delimiter : string *
count : int *
?options : RegexOptions
(* Defaults:
let _options = defaultArg options RegexOptions.None
*)
-> string
No code example is currently available or this language may not be supported.
- sender String
-
The source String.
- delimiter String
-
The delimiter string.
- count Int32
-
The delimiter occurrence count.
- options RegexOptions (Optional)
-
The RegexOptions.
String
The delimited string.
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).
This is a code example.
No code example is currently available or this language may not be supported.
MessageBox.Show("You are welcome to my party tomorrow!".Delimit("to"))
MessageBox.Show("You are welcome to my party tomorrow!".Delimit("a", 1, RegexOptions.RightToLeft))
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.