Ejemplo n.º 1
0
        public static void Delete(this RegistryKey registryKey)
        {
            using (var parent = registryKey.OpenParent()) {
                var nameWithoutPath = registryKey.GetNameWithoutPath();

                registryKey.Close();
                parent.DeleteSubKeyTree(nameWithoutPath);
            }
        }