System.AppContext public static class AppContext Documentation public static string BaseDirectory { get; } public static string TargetFrameworkName { get; } public static object GetData(string name) public static void SetSwitch(string switchName, bool isEnabled) public static bool TryGetSwitch(string switchName, out bool isEnabled)