StringUtils.ParseStringArray method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Strings
Assembly Skybrud.Essentials.dll

ParseStringArray(string)

Static

Parses string of multiple values into an array of String . Supported separators are comma (,), space (), carriage return (\r), new line (\n) and tab (\t).

Empty entries are automatically removed from the output array.

public static String[] ParseStringArray(string str)

Parameters

str String

The string containing the values.

Returns

Array of String

An array of String .

ParseStringArray(string, Char[])

Static

Parses string of multiple values into an array of String , using the specified array of separators.

Empty entries are automatically removed from the output array.

public static String[] ParseStringArray(string str, Char[] separators)

Parameters

str String

The string containing the values.

separators Array of Char

An array of supported separators.

Returns

Array of String

An array of String .