System.Threading.ReaderWriterLock.GetNotOwnerException C# (CSharp) Method

GetNotOwnerException() private static method

The original code used an incorrect Exception.HResult for this exception. The Exception.HResult value was set to ERROR_NOT_OWNER without first converting that error code into an HRESULT. The same value is used here for compatibility.
private static GetNotOwnerException ( ) : ApplicationException
return System.ApplicationException
        private static ApplicationException GetNotOwnerException()
        {
            return
                new ReaderWriterLockApplicationException(
                    IncorrectButCompatibleNotOwnerExceptionHResult,
                    SR.ReaderWriterLock_NotOwner);
        }