StringExtensions.ToInt64Array method

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

ToInt64Array(string)

Extension method

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

public static Int64[] ToInt64Array(this string str)

Parameters

str String

The comma separated string to be converted.

Returns

Array of long

An array of long .

ToInt64Array(string, Char[])

Extension method

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

public static Int64[] ToInt64Array(this string str, Char[] separators)

Parameters

str String

The comma separated string to be converted.

separators Array of Char

An array of supported separators.

Returns

Array of long

An array of long .