コード例 #1
0
        public static bool?GetBoolValue(this RegistryKey key, string name)
        {
            int?rawValue = key.GetIntValue(name);

            // Treat any non-null value other than zero as true
            return(rawValue != null && rawValue != 0);
        }