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
;
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();