Table of Contents

Method ParseFourFloats

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

ParseFourFloats(string?, IFormatProvider?)

Parses string with four float values separated by the comma character or other separator. All whitespaces and brackets are trimmed before parsing is done.

public static (float Item1, float Item2, float Item3, float Item4) ParseFourFloats(string? source, IFormatProvider? formatProvider = null)

Parameters

source string

String to parse.

formatProvider IFormatProvider

Optional IFormatProvider with string format settings. If not specified, InvariantEnglishUS is used.

Returns

(float Item1, float Item2, float Item3, float Item4)