diff options
Diffstat (limited to 'src/mscorlib/src/System/Runtime/InteropServices/SafeArrayRankMismatchException.cs')
-rw-r--r-- | src/mscorlib/src/System/Runtime/InteropServices/SafeArrayRankMismatchException.cs | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/src/mscorlib/src/System/Runtime/InteropServices/SafeArrayRankMismatchException.cs b/src/mscorlib/src/System/Runtime/InteropServices/SafeArrayRankMismatchException.cs index 12bf7e7e47..f39f1f3a41 100644 --- a/src/mscorlib/src/System/Runtime/InteropServices/SafeArrayRankMismatchException.cs +++ b/src/mscorlib/src/System/Runtime/InteropServices/SafeArrayRankMismatchException.cs @@ -10,31 +10,35 @@ ** =============================================================================*/ -namespace System.Runtime.InteropServices { - using System; - using System.Runtime.Serialization; +using System; +using System.Runtime.Serialization; +namespace System.Runtime.InteropServices +{ [Serializable] - public class SafeArrayRankMismatchException : SystemException { - public SafeArrayRankMismatchException() - : base(Environment.GetResourceString("Arg_SafeArrayRankMismatchException")) { - SetErrorCode(__HResults.COR_E_SAFEARRAYRANKMISMATCH); + public class SafeArrayRankMismatchException : SystemException + { + public SafeArrayRankMismatchException() + : base(SR.Arg_SafeArrayRankMismatchException) + { + HResult = __HResults.COR_E_SAFEARRAYRANKMISMATCH; } - - public SafeArrayRankMismatchException(String message) - : base(message) { - SetErrorCode(__HResults.COR_E_SAFEARRAYRANKMISMATCH); - } - - public SafeArrayRankMismatchException(String message, Exception inner) - : base(message, inner) { - SetErrorCode(__HResults.COR_E_SAFEARRAYRANKMISMATCH); + + public SafeArrayRankMismatchException(String message) + : base(message) + { + HResult = __HResults.COR_E_SAFEARRAYRANKMISMATCH; } - protected SafeArrayRankMismatchException(SerializationInfo info, StreamingContext context) : base(info, context) { + public SafeArrayRankMismatchException(String message, Exception inner) + : base(message, inner) + { + HResult = __HResults.COR_E_SAFEARRAYRANKMISMATCH; } + protected SafeArrayRankMismatchException(SerializationInfo info, StreamingContext context) : base(info, context) + { + } } - } |