Пример #1
0
 public static string GetOrThrow(this EnvironmentKey key)
 {
     return(EnvironmentExtensions.GetOrThrow(key.ToString()));
 }
Пример #2
0
 public static string?Get(this EnvironmentKey key)
 {
     return(Environment.GetEnvironmentVariable(key.ToString()));
 }
Пример #3
0
 public static bool TryGet(this EnvironmentKey key, [NotNullWhen(true)] out string?value)
 {
     return(EnvironmentExtensions.TryGetEnvironmentVariable(key.ToString(), out value));
 }