protected override void DisposeManaged() { if (factory_ != null) { // Key storage should be disposed first as disposing // factory closes reghives. keyStorage_.Dispose(); keyStorage_ = null; factory_.Dispose(); factory_ = null; } }
internal VirtualRegistry(string baseHivePath, string diffHivePath) { factory_ = new VirtualKeyFactory(baseHivePath, diffHivePath, alterer_); keyStorage_ = new VirtualKeyStorage(this); }