Environment.NoRegistry.cs 774 B

123456789101112131415161718192021
  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.
  4. using System.Diagnostics;
  5. using System.Collections;
  6. using Microsoft.Win32;
  7. namespace System
  8. {
  9. public static partial class Environment
  10. {
  11. // Systems without the Windows registry pretend that it's always empty.
  12. private static string GetEnvironmentVariableFromRegistry(string variable, bool fromMachine) => null;
  13. private static void SetEnvironmentVariableFromRegistry(string variable, string value, bool fromMachine) { }
  14. private static IDictionary GetEnvironmentVariablesFromRegistry(bool fromMachine) => new Hashtable();
  15. }
  16. }