Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
enum System.StringSplitOptions
Assembly: System.Runtime
Specifies options for applicable <see cref="Overload:System.String.Split" /> method overloads, such as whether to omit empty substrings from the returned array or trim whitespace from substrings.
Values
None
Use the default options when splitting strings.
RemoveEmptyEntries
<para>Omit array elements that contain an empty string from the result.</para> <para>If <see cref="F:System.StringSplitOptions.RemoveEmptyEntries" /> and <see cref="F:System.StringSplitOptions.TrimEntries" /> are specified together, then substrings that consist only of white-space characters are also removed from the result.</para>
TrimEntries
<para>Trim white-space characters from each substring in the result. This field is available in .NET 5 and later versions only.</para> <para>If <see cref="F:System.StringSplitOptions.RemoveEmptyEntries" /> and <see cref="F:System.StringSplitOptions.TrimEntries" /> are specified together, then substrings that consist only of white-space characters are also removed from the result.</para>