get user environment variable in .net code example
Example 1: c# environment variables
Environment.SetEnvironmentVariable(string variable, string value);
Example 2: .net using system variables
public static string? GetEnvironmentVariable (string variable);