StringUtils.ParseInt32Array method

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

ParseInt32Array(string)

Static

Parses a string of integer values into an array of int . Supported separators are ,, , \r, \n and \t. Values in the list that can't be converted to int will be ignored.

public static Int32[] ParseInt32Array(string str)

Parameters

str String

The string of integer values to be parsed.

Returns

Array of int

An array of int .

ParseInt32Array(string, Char[])

Static

Parses a string of integer values into an array of int . Values in the list that can't be converted to int will be ignored.

public static Int32[] ParseInt32Array(string str, Char[] separators)

Parameters

str String

The string of integer values to be parsed.

separators Array of Char

An array of supported separators.

Returns

Array of int

An array of int .