Class ConversionUtils
Contains helper properties and methods for the value conversion.
public static class ConversionUtils
- Inheritance
-
ConversionUtils
Methods
- ConvertWithAction<TConvertFrom, TConvertTo>(TConvertFrom?, Action<ValueConvertEventArgs<TConvertFrom?, TConvertTo?>>?, out TConvertTo?)
Calls the specified conversion action.
- FromInnerOuterSelector(InnerOuterSelector)
Converts InnerOuterSelector to the tuple with two boolean values.
- 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.
- ParseOneOrTwoOrFourFloats(string?, IFormatProvider?)
Parses string with 1, 2 or 4 float values separated by the comma character or other separator. All whitespaces and brackets are trimmed before parsing is done. Null is returned if error occurs during parsing or number of parsed floats is different from 1, 2 or 4.
- ParseTwoFloats(string?, IFormatProvider?)
Parses string with two float values separated by the comma character or other separator. All whitespaces and brackets are trimmed before parsing is done.
- ToInnerOuterSelector(bool, bool)
Converts
hasOuter
andhasInner
boolean parameters to InnerOuterSelector.