System.IO.FileStream.CheckFileCall C# (CSharp) Method

CheckFileCall() private method

private CheckFileCall ( long result, bool ignoreNotSupported = false ) : long
result long
ignoreNotSupported bool
return long
        private long CheckFileCall(long result, bool ignoreNotSupported = false)
        {
            if (result < 0)
            {
                Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo();
                if (!(ignoreNotSupported && errorInfo.Error == Interop.Error.ENOTSUP))
                {
                    throw Interop.GetExceptionForIoErrno(errorInfo, _path, isDirectory: false);
                }
            }

            return result;
        }

Same methods

FileStream::CheckFileCall ( int result, bool ignoreNotSupported = false ) : int