AerialForWindows.Settings.ReadInteger C# (CSharp) Method

ReadInteger() private static method

private static ReadInteger ( RegistryKey key, string name, int defaultValue ) : int
key Microsoft.Win32.RegistryKey
name string
defaultValue int
return int
        private static int ReadInteger(RegistryKey key, string name, int defaultValue)
        {
            var val = key?.GetValue(name);
            if (val is int) {
                return (int) val;
            }

            return defaultValue;
        }