ClientLauncher.IniFiles.GetDouble C# (CSharp) Метод

GetDouble() публичный Метод

Gets the value of a setting in an ini file as a T:System.Double.
/// or are /// a null reference (Nothing in VB) ///
public GetDouble ( string sectionName, string keyName, double defaultValue ) : double
sectionName string The name of the section to read from.
keyName string The name of the key in section to read.
defaultValue double The default value to return if the key /// cannot be found.
Результат double
        public double GetDouble(string sectionName,
                                string keyName,
                                double defaultValue)
        {
            string retval = GetString(sectionName, keyName, "");

            if (retval == null || retval.Length == 0)
            {
                return defaultValue;
            }

            return Convert.ToDouble(retval, CultureInfo.InvariantCulture);
        }