csharp check if env is development

Code Example - csharp check if env is development

                
                        bool isDevelopment = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") == "Development";
                    
                
 

csharp environment variables

                        
                                Environment.SetEnvironmentVariable(string variable, string value);
                            
                        
 

Related code examples