Метод | Описание | |
---|---|---|
ConvertFrom ( |
convert CityInfo into CityInfoString
|
|
ConvertTo ( |
convert CityInfoString into CityInfo
|
|
DealDecimalNumber ( string value, int number ) : string |
deal with decimal number
|
|
DealPrecision ( double value, int precision ) : double |
deal with value according to precision
|
|
DoubleToString ( double value, |
convert double into string
|
|
StringToDouble ( string value, |
convert string into double
|
Метод | Описание | |
---|---|---|
ParseFromString ( string value, |
Parse double from string
|
|
ValueConversion ( double value, |
deal with ratio
|
public static ConvertFrom ( |
||
cityInfo | CityInfo need to convert | |
Результат |
public static ConvertTo ( |
||
cityInfoString | CityInfoString need to convert | |
Результат |
public static DealDecimalNumber ( string value, int number ) : string | ||
value | string | string wanted to deal with |
number | int | number of decimal |
Результат | string |
public static DealPrecision ( double value, int precision ) : double | ||
value | double | original value will be dealed |
precision | int | precision wanted to be set |
Результат | double |
public static DoubleToString ( double value, |
||
value | double | double value need to convert |
valueType | value type | |
Результат | string |
public static StringToDouble ( string value, |
||
value | string | string value need to convert |
valueType | value type | |
newValue | double | conversion result |
Результат | bool |