private void SetMessageField() { if (_message == null) { if (_fileName == null) { _message = Environment.GetResourceString("Arg_BadImageFormatException"); } else { _message = FileLoadException.FormatFileLoadExceptionMessage(_fileName, HResult); } } }
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); } } }
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); } } }