/// <summary> /// Gets the given envirnment variable. /// </summary> /// <param name="variable">Variable to return.</param> /// <returns>The value of the variable.</returns> public static string GetEnvironmentVariable(EnvVar variable) { string value = Environment.GetEnvironmentVariable(variable.ToString()); if (value == null) { value = string.Empty; } return(value); }
/// <summary> /// Sets the given enviornemnt variable with the given value. /// </summary> /// <param name="variable">The Environment Variable to set.</param> /// <param name="value">What Value to set it.</param> public static void SetEnvironmentVariable(EnvVar variable, string value) { Environment.SetEnvironmentVariable(variable.ToString(), value); }