SingleConverter Constructor
Namespace: FolkerKinzel.CsvTools.Mappings.TypeConvertersAssembly: FolkerKinzel.CsvTools.Mappings (in FolkerKinzel.CsvTools.Mappings.dll) Version: 1.1.0+1263e8243dc2cd78095f678f813d7d9c52ea4315
public SingleConverter(
IFormatProvider? formatProvider = null,
string? format = "G9",
NumberStyles styles = NumberStyles.Any,
bool throwing = true,
float defaultValue = 0f
)
Public Sub New (
Optional formatProvider As IFormatProvider = Nothing,
Optional format As String = "G9",
Optional styles As NumberStyles = NumberStyles.Any,
Optional throwing As Boolean = true,
Optional defaultValue As Single = 0F
)
public:
SingleConverter(
IFormatProvider^ formatProvider = nullptr,
String^ format = L"G9",
NumberStyles styles = NumberStyles::Any,
bool throwing = true,
float defaultValue = 0f
)
new :
?formatProvider : IFormatProvider *
?format : string *
?styles : NumberStyles *
?throwing : bool *
?defaultValue : float32
(* Defaults:
let _formatProvider = defaultArg formatProvider null
let _format = defaultArg format "G9"
let _styles = defaultArg styles NumberStyles.Any
let _throwing = defaultArg throwing true
let _defaultValue = defaultArg defaultValue 0f
*)
-> SingleConverter
Parameters
- formatProvider IFormatProvider (Optional)
-
An IFormatProvider instance that provides culture-specific
formatting information, or null for InvariantCulture.
- format String (Optional)
-
A format string that is used for the String output of Byte
values. The format strings "D", "d", "X", "x" are not supported.
- styles NumberStyles (Optional)
-
A combined value of the NumberStyles enum that provides additional
information for parsing.
- throwing Boolean (Optional)
- Sets the value of the
Throwing property.
- defaultValue Single (Optional)
- Sets the value of the
DefaultValue property.