public IEnumerator <UtilsRegistryEntry> GetEnumerator()
        {
            RegistryKey key = _parent.Open();

            string[] names = key.GetValueNames();
            names = SortArray(names);
            foreach (string item in names)
            {
                yield return(this[item]);
            }
            key.Close();
        }
Example #2
0
        public void Delete()
        {
            RegistryKey key = _parent.Open(true);

            key.DeleteValue(_valueName);
            key.Close();
        }