Class ValidateNumberFormatter
Base nubmer formatter that uses default format specifier and CultureInfo that represents the culture used by the current thread.
public class ValidateNumberFormatter : INumberFormatter, INumberParser
- Inheritance
-
ValidateNumberFormatter
- Implements
- Inherited Members
Methods
FormatDouble(double?)
Returns a string representation of a double value.
public string FormatDouble(double? value)
Parameters
value
double?
Returns
FormatInt(int?)
Returns a string representation of an int value.
public string FormatInt(int? value)
Parameters
value
int?
Returns
FormatUInt(uint?)
Returns a string representation of a uint value.
public string FormatUInt(uint? value)
Parameters
value
uint?
Returns
ParseDouble(string?)
Attempts to parse a string representation of a double numeric value.
public double? ParseDouble(string? value)
Parameters
value
string
Returns
ParseInt(string?)
Attempts to parse a string representation of an int numeric value.
public int? ParseInt(string? value)
Parameters
value
string
Returns
- int?
ParseUInt(string?)
Attempts to parse a string representation of an uint numeric value.
public uint? ParseUInt(string? value)
Parameters
value
string
Returns
- uint?