Beispiel #1
0
 /// <summary>
 /// Returns the double representation of the string. Blank strings and null return 0.
 /// </summary>
 /// <param name="_string">The string to convert.</param>
 /// <param name="defaultValue">The default value to return if the conversion fails.</param>
 /// <returns>The double value of the string.</returns>
 public static double ToDouble(this string _string, double defaultValue)
 {
     return(StringConverters._ToDouble(_string, true, defaultValue));
 }
Beispiel #2
0
 /// <summary>
 /// Returns the double representation of the string. Blank strings and null return 0.
 /// </summary>
 /// <param name="_string">The string to convert.</param>
 /// <returns>The double value of the string.</returns>
 public static double ToDouble(this string _string)
 {
     return(StringConverters._ToDouble(_string, false, 0));
 }