StringExtensions.ToFloatArray method

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

ToFloatArray(string)

Extension method

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

public static Single[] ToFloatArray(this string str)

Parameters

str String

The comma separated string to be converted.

Returns

Array of Single

An array of Single .

ToFloatArray(string, Char[])

Extension method

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

public static Single[] ToFloatArray(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 Single

An array of Single .