Method | Description | |
---|---|---|
ParseDouble ( string s ) : double |
Throws an exception if can’t parse!
|
|
ParseDouble ( string s, double defaultValue ) : double | ||
ParseInt ( string s ) : int |
Throws an exception if can’t parse!
|
|
ParseInt ( string s, int defaultValue ) : int | ||
ParseLong ( string s ) : long |
Throws an exception if can’t parse!
|
|
ParseLong ( string s, long defaultValue ) : long | ||
ParseTime ( string s ) : int |
Throws an exception if can’t parse!
|
|
ParseTime ( string s, int defaultValue ) : int | ||
TryParseDouble ( [ s, double &value ) : bool | ||
TryParseDouble ( string s ) : double? | ||
TryParseInt ( [ s, int &value ) : bool | ||
TryParseInt ( string s ) : int? | ||
TryParseLong ( string s, long &value ) : bool | ||
TryParseLong ( string s ) : long? | ||
TryParseTime ( [ value, int &totalSeconds ) : bool |
Parse value from “12:34” to seconds from “00:00”
|
|
TryParseTime ( string s ) : int? |
Method | Description | |
---|---|---|
ReplaceDouble ( [ s, double value ) : string |
public static ParseDouble ( string s ) : double | ||
s | string | |
return | double |
public static ParseDouble ( string s, double defaultValue ) : double | ||
s | string | |
defaultValue | double | |
return | double |
public static ParseInt ( string s, int defaultValue ) : int | ||
s | string | |
defaultValue | int | |
return | int |
public static ParseLong ( string s, long defaultValue ) : long | ||
s | string | |
defaultValue | long | |
return | long |
public static ParseTime ( string s, int defaultValue ) : int | ||
s | string | |
defaultValue | int | |
return | int |
public static TryParseDouble ( [ s, double &value ) : bool | ||
s | [ | |
value | double | |
return | bool |
public static TryParseDouble ( string s ) : double? | ||
s | string | |
return | double? |
public static TryParseInt ( [ s, int &value ) : bool | ||
s | [ | |
value | int | |
return | bool |
public static TryParseInt ( string s ) : int? | ||
s | string | |
return | int? |
public static TryParseLong ( string s, long &value ) : bool | ||
s | string | |
value | long | |
return | bool |
public static TryParseLong ( string s ) : long? | ||
s | string | |
return | long? |
public static TryParseTime ( [ value, int &totalSeconds ) : bool | ||
value | [ | Value in “12:34” (or “12:34:56”) format. |
totalSeconds | int | Seconds from “00:00”. |
return | bool |
public static TryParseTime ( string s ) : int? | ||
s | string | |
return | int? |