示例#1
0
        private void SetMessageField()
        {
            if (_message == null)
            {
                if (_fileName == null)
                {
                    _message = Environment.GetResourceString("Arg_BadImageFormatException");
                }

                else
                {
                    _message = FileLoadException.FormatFileLoadExceptionMessage(_fileName, HResult);
                }
            }
        }
示例#2
0
        private void SetMessageField()
        {
            if (_message == null)
            {
                if ((_fileName == null) &&
                    (HResult == System.__HResults.COR_E_EXCEPTION))
                {
                    _message = Environment.GetResourceString("Arg_BadImageFormatException");
                }

                else
                {
                    _message = FileLoadException.FormatFileLoadExceptionMessage(_fileName, HResult);
                }
            }
        }
示例#3
0
        private void SetMessageField()
        {
            if (_message == null)
            {
                if ((_fileName == null) &&
                    (HResult == System.__HResults.COR_E_EXCEPTION))
                {
                    _message = SR.Arg_BadImageFormatException;
                }

                else
                {
                    _message = FileLoadException.FormatFileLoadExceptionMessage(_fileName, HResult);
                }
            }
        }