use IntPtr instead of CriticalHandle to avoid resurrection issues. It's ok to never...
[mono-project.git] / netcore / System.Private.CoreLib / shared / System / Environment.NoRegistry.cs
blob6e699b1f38616f0f604cf4a511ac0a7e6338be14
1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
5 using System.Diagnostics;
6 using System.Collections;
7 using Microsoft.Win32;
9 namespace System
11 public static partial class Environment
13 // Systems without the Windows registry pretend that it's always empty.
15 private static string? GetEnvironmentVariableFromRegistry(string variable, bool fromMachine) => null;
17 private static void SetEnvironmentVariableFromRegistry(string variable, string? value, bool fromMachine) { }
19 private static IDictionary GetEnvironmentVariablesFromRegistry(bool fromMachine) => new Hashtable();