📜  csharp 检查 env 是否为开发环境 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:11.982000             🧑  作者: Mango

代码示例1
bool isDevelopment = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") == "Development";