public UtilsRegistryKey this[string name] { get { RegistryKey key = _parent.Open(); UtilsRegistryKey newKey = new UtilsRegistryKey(_parent.Root, key, _parent.Path + "\\" + name); key.Close(); return(newKey); } }
public void Delete() { RegistryKey key = _parent.Open(true); key.DeleteValue(_valueName); key.Close(); }
/// <summary> /// Foreach Enumerator /// </summary> /// <returns></returns> public IEnumerator GetEnumerator() { RegistryKey key = _parent.Open(); string[] names = key.GetValueNames(); names = SortArray(names); foreach (string item in names) { yield return(this[item]); } key.Close(); }