Namespace: Assorted.Utils.Text
Assembly: Assorted.Utils (Assorted.Utils.dll) version 1.1.0.0
Returns the substrings in this string that are delimited by a specified Unicode character.
public static IEnumerable<string> LazySplit(
this string source,
char separator,
StringSplitOptions options = StringSplitOptions.None
)
source
: string
The source string.
separator
: char
A Unicode character that delimits the substrings in this string.
options
: StringSplitOptions
System.StringSplitOptions.RemoveEmptyEntries
to omit empty substrings from the result; or System.StringSplitOptions.None
to include empty substring in the result.
IEnumerable<string>
An System.Collections.Generic.IEnumerable<T>
that contains the substrings.
Exception | Description |
---|---|
System.ArgumentNullException | source is null . |
This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action.
This document is generated by DG.