コード例 #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));
 }