System.Runtime.InteropServices.CriticalHandle.CriticalHandle C# (CSharp) Method

CriticalHandle() private method

private CriticalHandle ( IntPtr invalidHandleValue ) : System
invalidHandleValue IntPtr
return System
    protected CriticalHandle(IntPtr invalidHandleValue)
    {
        handle = invalidHandleValue;
        _isClosed = false;

#if DEBUG
        if (BCLDebug.SafeHandleStackTracesEnabled)
            _stackTrace = Environment.GetStackTrace(null, false);
        else
            _stackTrace = "For a stack trace showing who allocated this CriticalHandle, set SafeHandleStackTraces to 1 and rerun your app.";
#endif
    }