SByteConverter Constructor

Initializes a new SByteConverter instance.

Definition

Namespace: FolkerKinzel.CsvTools.Mappings.TypeConverters
Assembly: FolkerKinzel.CsvTools.Mappings (in FolkerKinzel.CsvTools.Mappings.dll) Version: 1.1.0+1263e8243dc2cd78095f678f813d7d9c52ea4315
C#
public SByteConverter(
	IFormatProvider? formatProvider = null,
	string? format = "G",
	NumberStyles styles = NumberStyles.Any,
	bool throwing = true,
	sbyte defaultValue = 0
)

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 SByte values. The format strings "R" and "r" 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  SByte  (Optional)
Sets the value of the DefaultValue property.

Exceptions

ArgumentExceptionformat is "R" or "r".

See Also