using System; using System.Linq; public static class AppConfig { // Computed once, cached forever — reading it anywhere costs nothing. public static readonly bool DebugMode = Environment.GetCommandLineArgs().Contains("--debug"); }