public class DebugHelper { public static bool IsDebugMode() => IsDebugBuild() && Debugger.IsAttached; public static bool IsDebugBuild() { #if DEBUG return true; #else return false; #endif } }
822900cookie-checkC# DebugHelper
public class DebugHelper { public static bool IsDebugMode() => IsDebugBuild() && Debugger.IsAttached; public static bool IsDebugBuild() { #if DEBUG return true; #else return false; #endif } }