summaryrefslogtreecommitdiff
path: root/src/mscorlib/src/System/DllNotFoundException.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mscorlib/src/System/DllNotFoundException.cs')
-rw-r--r--src/mscorlib/src/System/DllNotFoundException.cs42
1 files changed, 24 insertions, 18 deletions
diff --git a/src/mscorlib/src/System/DllNotFoundException.cs b/src/mscorlib/src/System/DllNotFoundException.cs
index 43bb57fec2..a3b46c76b3 100644
--- a/src/mscorlib/src/System/DllNotFoundException.cs
+++ b/src/mscorlib/src/System/DllNotFoundException.cs
@@ -11,29 +11,35 @@
**
=============================================================================*/
-namespace System {
-
- using System;
- using System.Runtime.Serialization;
+using System;
+using System.Runtime.Serialization;
+
+namespace System
+{
[Serializable]
- public class DllNotFoundException : TypeLoadException {
- public DllNotFoundException()
- : base(Environment.GetResourceString("Arg_DllNotFoundException")) {
- SetErrorCode(__HResults.COR_E_DLLNOTFOUND);
+ public class DllNotFoundException : TypeLoadException
+ {
+ public DllNotFoundException()
+ : base(SR.Arg_DllNotFoundException)
+ {
+ HResult = __HResults.COR_E_DLLNOTFOUND;
}
-
- public DllNotFoundException(String message)
- : base(message) {
- SetErrorCode(__HResults.COR_E_DLLNOTFOUND);
+
+ public DllNotFoundException(String message)
+ : base(message)
+ {
+ HResult = __HResults.COR_E_DLLNOTFOUND;
}
-
- public DllNotFoundException(String message, Exception inner)
- : base(message, inner) {
- SetErrorCode(__HResults.COR_E_DLLNOTFOUND);
+
+ public DllNotFoundException(String message, Exception inner)
+ : base(message, inner)
+ {
+ HResult = __HResults.COR_E_DLLNOTFOUND;
}
- protected DllNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context) {
- }
+ protected DllNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context)
+ {
+ }
}
}