namespace ElectronNET.Runtime.Helpers
{
using System;
using System.Diagnostics;
///
/// Helper class for debugger detection with lazy initialization.
///
internal static class DebuggerHelper
{
///
/// Gets whether a debugger is attached. This value is cached for performance.
///
public static bool IsAttached => _isAttached.Value;
private static readonly Lazy _isAttached = new Lazy(() => Debugger.IsAttached);
}
}