public RegistryKeyItem(RegistryKeyItem parent, string text) : base(parent) { _root = parent.Root; Text = text; Path = string.Concat(parent.Path, parent.Path != null ? "\\" : string.Empty, text); }
public RegistryKeyItem CreateNewKey(string name) { using (var key = _root.CreateSubKey(string.Format("{0}\\{1}", Path, name))) { var newitem = new RegistryKeyItem(this, name); SubItems.Add(newitem); return(newitem); } }
public static ICollection<RegistryKeyItemBase> LoadKeys(Stream stm) { var reader = new BinaryReader(stm); int count = reader.ReadInt32(); var keys = new List<RegistryKeyItemBase>(count); for(int i = 0; i < count; i++) { var key = new RegistryKeyItem(reader.ReadString(), reader.ReadString()); keys.Add(key); } return keys; }
public RegistryKeyItem CreateNewKey(string name) { using(var key = _root.CreateSubKey(string.Format("{0}\\{1}", Path, name))) { var newitem = new RegistryKeyItem(this, name); SubItems.Add(newitem); return newitem; } }
public RegistryValue(RegistryKeyItem key) { Debug.Assert(key != null); _key = key; }
public RegistryValue(RegistryKeyItem key) { Debug.Assert(key != null); _key = key; }
public RegistryKeyItem(RegistryKeyItem parent, string text) : base(parent) { _root = parent.Root; Text = text; Path = string.Concat(parent.Path, parent.Path != null ? "\\" : string.Empty, text); }