StringSplitOption

Description

The StringSplitOption enumeration contains types of separators that are used to split character strings.

It is used by the following property:

Available Values

Value Brief description
1 NoEmpty. Exclude empty strings from the result. When a character string is split, empty elements created when two or more separators follow each other in the string, are not included into the output array.
2 Chars. Treat separator characterwise. When a character string is split, each character of the string specified in the Delimiters parameter of the Split method is regarded as a separator.
4 String. Treat separator as a single string. When a character string is split, the whole character string specified in the Delimiters parameter of the Split method is regarded as a separator.

NOTE. Combinations of StringSplitOption.Chars and StringSplitOption.String values are forbidden.

See also:

System Assembly Enumerations